3 Replies - 4251 Views - Last Post: 15 March 2011 - 12:52 AM Rate Topic: -----

#1 srinivas_ag  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 36
  • Joined: 27-August 09

how to upload PDF file into mysql server via C#.net connector

Posted 14 March 2011 - 05:56 AM

Dear all,
I am working with C# ,Compact framework 2.0 and smart device. I used Mysql.data.cf dll for mysql connections to read and write in Mysql tables.

I have an doubt, is it possible to put .PDF files into Mysql server via C#.net (forms) and Mysql connector.

I searched in Net. i didnt get any help.please let me know, is it possible with c#.net(windows) with Mysql connector.


Thanks in advance.

Sri

Is This A Good Question/Topic? 0
  • +

Replies To: how to upload PDF file into mysql server via C#.net connector

#2 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10647
  • View blog
  • Posts: 39,539
  • Joined: 27-December 08

Re: how to upload PDF file into mysql server via C#.net connector

Posted 14 March 2011 - 05:59 AM

Don't store PDF files directly in the database. Store files on the server, and store their paths as Strings in the database. You will greatly reduce the load of the server this way.
Was This Post Helpful? 1
  • +
  • -

#3 Sergio Tapia  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1253
  • View blog
  • Posts: 4,168
  • Joined: 27-January 10

Re: how to upload PDF file into mysql server via C#.net connector

Posted 14 March 2011 - 06:03 AM

Since he is using MySQL, I agree.

However, if he were using MSSQL 2008 he could use a FileStream.
Was This Post Helpful? 3
  • +
  • -

#4 srinivas_ag  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 36
  • Joined: 27-August 09

Re: how to upload PDF file into mysql server via C#.net connector

Posted 15 March 2011 - 12:52 AM

View PostSergio Tapia, on 14 March 2011 - 06:03 AM, said:

Since he is using MySQL, I agree.

However, if he were using MSSQL 2008 he could use a FileStream.



Hi ,
Thanks to All
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1