0

Hi i have to add a image path to a column in table. i have the image file in a local folder. how to achieve this? i dont want to add the image fully as binary , i just want to add the image path to the column. thanx in advance.

1
  • use varchar as field type, get the relative/absolute path and store it. Commented Dec 4, 2012 at 10:57

1 Answer 1

2

Just save it as a VARCHAR(260) and then you can access it from whatever program you are using/writing. [edited due to marc_s' comment]

Sign up to request clarification or add additional context in comments.

2 Comments

Since a path in Windows can be a maximum of 260 characters long - varchar(max) with a maximum of 2 GByte of data seems like a massive overkill..... varchar(260) would be just as good and doesn't carry any of the downsides of the max datatypes...
I couldn't remember the max length of the address =)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.