Click here to Skip to main content
15,909,897 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
Am start doing one website. in this i have one module which is registration form can have an item that is upload resume.

front end : Asp.net with c#
backend : xml

My problem is i can insert my registration field in to xml but
i cant able to insert upload resume(which means the file upload) into xml

i tried many other sites but i couldn't get the exact solution.


so please help me out of this problem if any one knows this answer.


with regards,
stellus.
Posted
Comments
[no name] 25-Jul-13 9:55am    
Help you with what exactly? Why are you trying to "upload" a resume and stick it into an XML document? That makes no sense.
Joezer BH 25-Jul-13 10:08am    
Quote: "backend : xml"

What do you mean exactly by that?

1 solution

Hello,

Instead of trying to store your resume in XML itself store it on the disk and only store the name in XML. You can use following logic to organize the resumes on your hard disk.

1. For each record generate a unique sequence number.
2. Get the hex equivalent of the number.
3. If the number is less than 256 then container folder is named as 00 (Each folder will contain 255 files) the hex number it self will serve as the file name) This will allow you to have 255 folders each containing 255 files (65,025 files). 255 folders will create a so called repository/bucket.
4. Extend the above logic to have 255 buckets (1,65,81,375) files a barrel perhaps. 255 barrel's will allow 4,22,82,50,625 files.

All files are now organized neatly and can be accessed easily using just the unique numeric identifier.

Regards,
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900