We are porting our 32 bit (ASP) application to 64 bit (ASP.NET). Current we facing problem on sending Image (binary) Data from ASPX to Com DLL.

Below is ASPX and Com Code.

ASPX Code:

Dim MyStream As System.IO.Strea m
Dim FileInByteArr As Byte() = New Byte(FileLen) {}

'Initialize the stream.
MyStream = PostedFile.Inpu tStream

' Read the file...