Home All Groups Group Topic Archive Search About

Upload Excel file to a BLOB column. - Need Solution.

Author
5 Apr 2006 5:05 AM
Anbu C Joseph
I having a problem where in I have to upload the excel document into BLOB db
column of a table. I tried and I was able to upload the excel document. when
the size of the excel document goes more than 32kb it fails and throws a
conversion error. other wise it is working as desired.

Following is the code I tried.

1) first i upload the excel file to the server.
2) The using byte stream I make the excel file to of file type
3) Then Insert the filetype to the BLOB column.

Please give me a very good solution.

Author
5 Apr 2006 5:09 AM
Anbu C Joseph
The below problem is from ASP.net page and in VB.NET.
Framework is 1.1

Show quote
"Anbu C Joseph" wrote:

> I having a problem where in I have to upload the excel document into BLOB db
> column of a table. I tried and I was able to upload the excel document. when
> the size of the excel document goes more than 32kb it fails and throws a
> conversion error. other wise it is working as desired.
>
> Following is the code I tried.
>
> 1) first i upload the excel file to the server.
> 2) The using byte stream I make the excel file to of file type
> 3) Then Insert the filetype to the BLOB column.
>
> Please give me a very good solution.
>
>
Author
5 Apr 2006 5:21 AM
Cor Ligthert [MVP]
AnBu,

Because you succeed in files from below 32Kb, I think showing you a
memorystream solution has no sense because you are using that most probably
already.

I don't know if you users should use it direct from your database. Otherwise
is in my idea Zipping it first forever a good solution. In Net 2.0 is
zipping integrated for 1.x are more than enough Zip solutions on Internet.

http://www.sharpdevelop.net/OpenSource/SharpZipLib/Default.aspx

http://www.gzip.org/zlib/

Cor

Show quote
"Anbu C Joseph" <AnbuCJos***@discussions.microsoft.com> schreef in bericht
news:DEEA8F3F-9BD2-4C2B-8163-D85793418CAB@microsoft.com...
> The below problem is from ASP.net page and in VB.NET.
> Framework is 1.1
>
> "Anbu C Joseph" wrote:
>
>> I having a problem where in I have to upload the excel document into BLOB
>> db
>> column of a table. I tried and I was able to upload the excel document.
>> when
>> the size of the excel document goes more than 32kb it fails and throws a
>> conversion error. other wise it is working as desired.
>>
>> Following is the code I tried.
>>
>> 1) first i upload the excel file to the server.
>> 2) The using byte stream I make the excel file to of file type
>> 3) Then Insert the filetype to the BLOB column.
>>
>> Please give me a very good solution.
>>
>>
Author
6 Apr 2006 2:39 PM
Anbu C Joseph
Hi Cor,

Thanks for your solution. Actually we tried and we have solved it. Now it is
uploading more than 32kb where we have to make chnages for our framework.

We will try your solution.

Regards
Anbu.

Show quote
"Cor Ligthert [MVP]" wrote:

> AnBu,
>
> Because you succeed in files from below 32Kb, I think showing you a
> memorystream solution has no sense because you are using that most probably
> already.
>
> I don't know if you users should use it direct from your database. Otherwise
> is in my idea Zipping it first forever a good solution. In Net 2.0 is
> zipping integrated for 1.x are more than enough Zip solutions on Internet.
>
> http://www.sharpdevelop.net/OpenSource/SharpZipLib/Default.aspx
>
> http://www.gzip.org/zlib/
>
> Cor
>
> "Anbu C Joseph" <AnbuCJos***@discussions.microsoft.com> schreef in bericht
> news:DEEA8F3F-9BD2-4C2B-8163-D85793418CAB@microsoft.com...
> > The below problem is from ASP.net page and in VB.NET.
> > Framework is 1.1
> >
> > "Anbu C Joseph" wrote:
> >
> >> I having a problem where in I have to upload the excel document into BLOB
> >> db
> >> column of a table. I tried and I was able to upload the excel document.
> >> when
> >> the size of the excel document goes more than 32kb it fails and throws a
> >> conversion error. other wise it is working as desired.
> >>
> >> Following is the code I tried.
> >>
> >> 1) first i upload the excel file to the server.
> >> 2) The using byte stream I make the excel file to of file type
> >> 3) Then Insert the filetype to the BLOB column.
> >>
> >> Please give me a very good solution.
> >>
> >>
>
>
>
Author
12 Apr 2006 2:01 PM
avdhut
I need to create Excel file from BLOB field from vb.net.

can you please help me out?

thanks.
avdhut
Author
13 Apr 2006 11:58 AM
Paul Clement
On Wed, 12 Apr 2006 07:01:14 -0700, avdhut wrote:

¤ I need to create Excel file from BLOB field from vb.net.
¤
¤ can you please help me out?

What kind of database are you working with?


Paul
~~~~
Microsoft MVP (Visual Basic)

AddThis Social Bookmark Button