Is it possible to upload a base64 image? #617
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi there,
I know you have already touched this topic but I think that my case in a special one.
I am using the ng2-img-cropper Component, which allows you to get a smaller and lighter image from the original one.
Inside the image property, after cropping you get the resulting base64 string of the cropped image.
What I want to do is in my uploder object add this base64 image to the queue, so after that I will be allowed to invoke the uploader.queue[0].upload() function.
I am bugging you with this since we will be working with several images with different sizes, such as cover images, profile images/thumbnails and companies logos just to mention a few of them, and as you can imagine it would be quite nice if we can save some net traffic and also storage just saving the image we have cropped and not the initial one.
I have tried creating an Image from the base64 string and assign it directly but I am always getting an exception
Any kind of help on this will be more than appreciated.
Best regards.
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
Solved!
Use dom-to-image
@surfercoder @valor-software @chriseenberg @Boffka I have the same request and tried research but nothing helpful,anyone can help me?thanks
+!