0

Hi,

I am developing a grid. It works fine but I am trying to find a better solution for rendering binary data.

Current flow works as following :

Store cell value as byte[], create/save MemoryStream, FileStream on server side and link..

string p_memoryStreamFileNameExtension = "";
    MemoryStream p_memoryStream = new MemoryStream();
    FileStream p_memoryStreamFile;
    Byte[] p_memoryByte;

    p_memoryByte = (Byte[])dt_view[row][column];
    p_memoryStream = new MemoryStream();

    p_memoryStreamFile = File.OpenWrite(PhysicalPath + @"\" + p_memoryStreamFileNameExtension);
    p_memoryStreamFile.Flush();
    p_memoryStream.WriteTo(p_memoryStreamFile);
    p_memoryStream.Close();
    p_memoryStreamFile.Close();

What I am trying to get is : Store binary to client / link from client. ( instead of saving to server and link from server ) Similar to WebResource.asd behavior

Any ideas ?

Thanks in advance

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by agrothe
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.