Search found 3 matches

by EricS
Fri Jun 23, 2023 5:29 pm
Forum: Image Processing & Document Imaging
Topic: Loading Image as a data url
Replies: 3
Views: 11244

Re: Loading Image as a data url

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
by EricS
Wed May 17, 2023 4:57 pm
Forum: Image Processing & Document Imaging
Topic: Loading Image as a data url
Replies: 3
Views: 11244

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...
by EricS
Tue May 16, 2023 11:34 am
Forum: Image Processing & Document Imaging
Topic: Loading Image as a data url
Replies: 3
Views: 11244

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