hi guys, how will i convert byte array to a file, then open it. i searched the internet, but they usually create the file first then save it to their local disk, before opening... i just want to open the file(from byte array) from virtual memory.. is it possible? i need your help badly.. thanks guys..
spy
Posts
-
Convert byte array to file, then open it ot its default application -
File being usedhey guyz..im having a problem about my application, it has a profile form, with picture, this picture is being converted to bytes and save it to database, when the form loads, it will create a temporary file..and display the picture.. but the problem here is that, whenever i changed the picture of a certain profile, it will still displays the previous one, because the "file is being used". I can't see the effect, unless i stop the application and run it again.. i hope you can help me with this..tnx in advance some codes: strfn = AppDomain.CurrentDomain.BaseDirectory + "profile_pic\\" + dgProfile[dgProfile.CurrentRowIndex,0].ToString(); FileStream fs = new FileStream(strfn,FileMode.Create,FileAccess.Write); fs.Write(imageByte,0,imageByte.Length); fs.Flush(); fs.Close(); picBoxProfile.Image = Image.FromFile(strfn);
-
Datepicker dropdownhi guyz!! I have a problem with datepicker, i want to know if the dropdown is currently open or not.. i need that in my condition, i really need your help, tnx in advance.
-
Changing crystal report connection at runtimetnx for the help..n_n
-
Changing crystal report connection at runtimetnx guyz..im using web config..n_n
-
Changing crystal report connection at runtimehey guyz.. anyone know how to change crystal report connection at runtime, im just a beginner of using this.. i can generate reports and filter records, but im worrying about the connection if ever i run this to other computer...i need your help badly...tnx guyz in advance
-
Deleting temporary filehey guyz how can i delete the temporary file that i created, whenever i retrieved the image saved in my database.. it keeps on growing..i hope u can help me regarding these... here is the code string strfn = Convert.ToString(DateTime.Now.ToFileTime()); FileStream fs=new FileStream(strfn,FileMode.CreateNew,FileAccess.Write); fs.Write(imageByte,0,imageByte.Length); fs.Flush(); fs.Close(); picBox.Image = Image.FromFile(strfn);
-
(Exit) Not to continue the executionHow can i exit or not to continue the execution of statements in a certain event or function? Just like "Exit Sub" in Visual Basic...
-
Tool tip text in a buttonhey guys.. anyone know how to make tool tip text in a button..im using C#.net 2003..n_n
-
DataGrid with checkboxhi guyz.. Any one know how to make a datagrid with checkbox in each row(email style), I will use it for multiple selection, I'm using c#.net 2003.. I want my application to have this feature.. tnx in advance n_n
-
Multiple selection in a datagridHow can I make a multiple row selection in a dataGrid, without using rowheaders? I'm using visual studio.net 2003.. tnx in advance..
-
how can i make a full row select in a datagridhow can i make a full row select in a datagrid, without using the row headers? im using visual studio.net 2003