I think so, I use it on Windows, written in C#.
But only basic functions are used, so it should work everywhere. Split up the data url to get the plain data without the header, convert it from base64 to binary, load it into GDPicture
Search found 3 matches
- Fri Jun 23, 2023 5:29 pm
- Forum: Image Processing & Document Imaging
- Topic: Loading Image as a data url
- Replies: 3
- Views: 16360
- Wed May 17, 2023 4:57 pm
- Forum: Image Processing & Document Imaging
- Topic: Loading Image as a data url
- Replies: 3
- Views: 16360
Re: Loading Image as a data url
I solved it by some extra code: var base64Data = Regex.Match(data, @"data:image/(?<type>.+?),(?<data>.+)").Groups["data"].Value; var binData = Convert.FromBase64String(base64Data); GdPictureImaging image = new GdPictureImaging(); var imageId = image.CreateGdPictureImageFromByteAr...
- Tue May 16, 2023 11:34 am
- Forum: Image Processing & Document Imaging
- Topic: Loading Image as a data url
- Replies: 3
- Views: 16360
Loading Image as a data url
Which method I need to load a image via a data url?
The image data ist stored in a database, as string.
Example: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlgAAAEsCAYAAAAfPc2WAAAS2ElEQVR4Xu3dMYusZwEF4BOsbNSAnYWo6TWE" and lot more
Thank you
Eric
The image data ist stored in a database, as string.
Example: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlgAAAEsCAYAAAAfPc2WAAAS2ElEQVR4Xu3dMYusZwEF4BOsbNSAnYWo6TWE" and lot more
Thank you
Eric