Linked Questions

11 votes
1 answer
25k views

How to convert a Base64 PNG image string to PNG Format in C# [duplicate]

Possible Duplicate: converting a base 64 string to an image and saving it I have a PNG image encoded as a Base64 string. I need to convert this string into PNG format. How can I convert this in C#...
Imran Qadir Baksh - Baloch's user avatar
0 votes
0 answers
375 views

base64 to image filename [duplicate]

I have code that crops a image when a user clicks on a button: $('#crop').click(function () { var imageDataBase64 = $('#image-cropper').cropit('export'); var image = new Image(); image....
Bryan's user avatar
  • 3,501
123 votes
17 answers
116k views

Image.Save(..) throws a GDI+ exception because the memory stream is closed

i've got some binary data which i want to save as an image. When i try to save the image, it throws an exception if the memory stream used to create the image, was closed before the save. The reason i ...
Pure.Krome's user avatar
  • 85.8k
4 votes
2 answers
3k views

How to extract image from IDML file using IDMLlib

I need to parse an IDML file and save the images separately from that file in formats for the Web. Can I do that IDMLlib? And if it's possible then can you show me some examples? P.S. The ...
Arsen Salamakha's user avatar
5 votes
4 answers
1k views

C# Download Image from unknown format

I'm working on batch downloader but some URLs are not sending data correctly. For example, this page: http://i.imgbox.com/absMQK6A.png In any internet browser, this page shows an image, but in my ...
user avatar
3 votes
2 answers
4k views

Converting binary image data received from a webservice to a byte[]

in a Windows store app project i have this method private async void getUSerImage() { try { using (var httpClient = new HttpClient { BaseAddress = Constants....
Thought's user avatar
  • 5,676
0 votes
1 answer
3k views

How to convert raw data to JPEG file using C#

I have such a string : string x = 0x424D3630090000000000360010028000000C00100200011111111111333333333000000C40E0000C40E000000088888888BBBBCC262281FF231F7EFF251D81FF....." I'm told to convert this ...
jason's user avatar
  • 7,052
0 votes
2 answers
2k views

I want to save image in database

I have an image on a page, e.g <img id="img3" runat="server" src="image.jpg" width="200" height="200"/> and I'd like to save the image referenced by the src attribute in my database using stored ...
H.A.M's user avatar
  • 51
2 votes
2 answers
3k views

Validate Base64 Image in ASP.Net / C#

I'm building an ASP.Net mvc4 application that allows the user to send an image encoded as a Base64 string via a POST request. How to validate the user input to ensure that the base64 string is indeed ...
Andy's user avatar
  • 1,080
1 vote
1 answer
4k views

Xamarin form - how to upload and retrieve image using sql server web api

i need to upload image as binary data and retrieve here is my code Web Api [ResponseType(typeof(tblEmpPicture))] public IHttpActionResult PosttblEmpPicture(tblEmpPicture tblEmpPicture) ...
waqas waqas's user avatar
2 votes
2 answers
2k views

How to Convert a base64 image url to User Friendly URL in ASP.NET

I'm retrieving image from database which as stored in base64 format. Here my requirement is, I want to convert a base64 image url into user friendly url. I tried many solutions, but I didn't get as i ...
Sri's user avatar
  • 174
0 votes
1 answer
1k views

Convert base64 string to jpg/file

I am struggling to find a way to convert a base 64 string to a jpeg or a file without using the Image class. Is it possible to create the file and not save it locally and upload to Azure blob storage? ...
Jay Jay's user avatar
  • 57
0 votes
1 answer
1k views

Upload Base-64 encoded CSS image to Asp.Net MVC/WebApi

Referring to the question. I have rendered a base-64 encoded image on client side. .even { background: #fff url(data:image/gif;base64,R0lGODlhBgASALMAAOfn5+rq6uvr6+zs7O7u7vHx8fPz8/b29vj4+P39/f///...
Abhijeet's user avatar
  • 13.3k
-1 votes
1 answer
1k views

Decoding a base64 image

I would like to decode a base64 string to an image. I'm using the following code to decode, string base64string = subSocket.ReceiveFrameString(); if (base64string.Length > 1000) { var ...
Mr. Randy Tom's user avatar
0 votes
1 answer
928 views

How to Display image in HTML Table on client side using jQuery

I want to upload image and display in the table after clicking add to list. I'm inserting data on the client side in HTML Table using this: imageFile =$("#imageFile").val() but it shows only a ...
Journal Trends's user avatar

15 30 50 per page