How to
•
Upload inventory to RapNet
•
Download Rapaport price data
•
List RapNet inventory on my website
•
Upload certificates
•
Integrate the Rapaport Price List
•
Keep inventory on RapNet
•
Code samples
About
RapNet upload
Rapaport Price Lists
RapLink⢠Diamond Feed
TradeLink
RapNet06
Glossary
Community
Support forum
Developer forum
Standards forum
IT professional registration
Rapaport technical advisories
Latest updates
Downloads
RapNet 06
TradeLink
Rapaport online
www.diamonds.net
www.rapnet.com
Rapaport Lot Upload code samples and helpful tips
Back to RapNet Upload
Full HTTP POST/WebRequest Example (C#) and CSV file
HTTP POST/WebClient (C#) and CSV formated string
HTTP POST/WebClient (C#) and CSV file
HTTP POST/WebClient (VBA) and CSV file
WebService Code Example (C#)
Other code samples:
Save a byte array as a file in (C#)
Working with streams (C#)
Saving text files with TextWriter (C#)
Requesting a compressed Gzip response(C#)
//to save binary files:
//using System.IO;
//responseBytes is the byte array
FileStream
fs =
new
FileStream
(
"c:\\result3.csv"
,
FileMode
.Create,
FileAccess
.ReadWrite);
BinaryWriter
bw =
new
BinaryWriter
(fs);
bw.Write(responseBytes);
bw.Close();