{"id":30107043,"url":"https://github.com/benignware/base64_attachment","last_synced_at":"2025-08-10T01:33:00.908Z","repository":{"id":20645301,"uuid":"23927269","full_name":"benignware/base64_attachment","owner":"benignware","description":"Upload base64-encoded file attachments to a rails rest service","archived":false,"fork":false,"pushed_at":"2015-03-26T12:02:47.000Z","size":200,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-27T11:18:06.650Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/benignware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-11T16:56:57.000Z","updated_at":"2015-03-26T12:02:48.000Z","dependencies_parsed_at":"2022-08-24T09:00:47.800Z","dependency_job_id":null,"html_url":"https://github.com/benignware/base64_attachment","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/benignware/base64_attachment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benignware%2Fbase64_attachment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benignware%2Fbase64_attachment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benignware%2Fbase64_attachment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benignware%2Fbase64_attachment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benignware","download_url":"https://codeload.github.com/benignware/base64_attachment/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benignware%2Fbase64_attachment/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269663321,"owners_count":24455796,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-09T02:00:10.424Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-10T01:31:59.632Z","updated_at":"2025-08-10T01:33:00.785Z","avatar_url":"https://github.com/benignware.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"base64_attachment\n=================\n\n\u003e Upload base64-encoded file attachments to a rails rest service\n\nThis gem allows you to define `file`-attributes on an active record class which can receive base64-encoded strings which comes in handy for json rest clients posting images to a rails application.\nSimply post your base64-encoded string using the `_base64`-suffix on the attribute name.\n\nUsage\n-----\n\nRegister your model for the base64-hook\n```ruby\nclass Post \u003c ActiveRecord::Base\n  has_attached_base64 :image\nend\n```\n\nPost json\n```json\n{\n  \"post\": {\n    \"image_base64\": \"base64-encoded string\"\n  }\n}\n```\n\nThe content-type as well as the original_filename is automatically generated based on magic numbers using the [mime-magic](https://github.com/minad/mimemagic)-gem.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenignware%2Fbase64_attachment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenignware%2Fbase64_attachment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenignware%2Fbase64_attachment/lists"}