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

This is c# code, not classic asp, you should ask this in the ASP.NET forum.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.