JimiJ13
asked on
How can I fetch docx or pdf file from MS SQL column for auto email attachment?
Dear Experts,
I'm using ASPNETEmail and I'm looking how to automatically fetch docx or pdf file with specific filename from MS SQL database and attach to an email.
The best solution would be highly appreciated,
Thanks.
I'm using ASPNETEmail and I'm looking how to automatically fetch docx or pdf file with specific filename from MS SQL database and attach to an email.
The best solution would be highly appreciated,
Thanks.
ASKER
Hi pcelba,
Thanks for the affirmative idea.
The docx or pdf are stored tblName.DocImage (image) with filename in tblName.DocFileName (varchar (50)) and PK at tblName.DocID (varchar(40)).
Can you give me a working code to retrieve the DocImage based on PK and save to a temp file?
Thanks.
Thanks for the affirmative idea.
The docx or pdf are stored tblName.DocImage (image) with filename in tblName.DocFileName (varchar (50)) and PK at tblName.DocID (varchar(40)).
Can you give me a working code to retrieve the DocImage based on PK and save to a temp file?
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
pcelba,
I will try it and let you know.
Thanks.
I will try it and let you know.
Thanks.
ASKER
Great sources provided to help me come up with a solution.
Finally you should delete the temp file.
Everything should be done at the ASP.NET server side.