Upload image to client without sending to server [dropzone.js] - dropzone.js

How can I have the user upload an image, then without sending it to a server give me the base64 version of the image?

Related

Accessing images uploaded to Azure blob from bot framework

I have uploaded a .png image from Azure bot using AttachmentPrompt and image is stored at http://localhost:52225/v3/attachments/7e46c370-2f09-11eb-8de3-8bfedba8e1e0/views/original. Image is not being stored as a .png, but without any extension. How to access this file ? I need to pass this file to OCR Read endpoint.
If you are about to call this API with the image that stored on your local side, you can just upload binary data of this image to OCR READ API with HTTP request header: Content-Type: application/octet-stream.
Just like below :
Let me know if you need more assistance.

Configuration setting for decode base64 string to image Mail server

In our application we are reading mail body which client have replied to our mail address and saved it to our database table.
When some clients reply on our email address mail body contains base64 string with header Content-Transfer-Encoding: base64.
Can I know if there is any configuration setting on mail server that it will convert the base64 string into image.
This problem occurs only with some clients not all. I am guessing that these clients have base64 image in their signature.
Any help will be much appreciated.
Please check below image for what response we get in our application.
It isn't the server that needs to convert anything. base64 encoded images are already images.
It is your client, whatever you are using to view the emails that needs to interpret the embedded base64 encoding and display it as an image to you.

How to request Paperclip attachment via faraday connection over http

I am making a get request via http to my other application. Both apps use Paperclip to manage attachment. How can I achieve to make the target app make a correct response with the attachment? Or any suggestion ?
If you are trying to serve same asset from two different applications. that's a bad idea because it will lead to sync issus & race conditions.
Instead, you should create a image service which runs on images.example.com. Here you will expose an endpoint where images can be uploaded via HTTP POST and download via URL.
Now, get both of your applications to upload & download images from this service.

Amazon S3: Can we download image in base64 encode string

I know in Amazon S3 we can upload images in base64 string format. Is there a functionality that we can download the image from amazon in base64 format rather than URL of the amazon.
Are you looking for GetObject?

How can I send Images to php web service?

I want to send my image to php web service. I convert image in bytcode and try to send it to web service but php web service want my image in file formate so please tell me how can I make my image in file formate and send it to php web service.
You need to perform a file upload with multipart data, see Upload files with HTTPWebrequest (multipart/form-data) for a example.

Resources