Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
how to import an image file using cssdk?
VixRox
Hi,
I want to import an image file using cssdk from my local file system.Ia m doing as below but no success.
private FileServiceBinding mFilesys = new FileServiceBinding();
FileStream inputStreamImage = new FileStream(C:\TEMP\\filename , FileMode.Open, FileAccess.Read, FileShare.None);
int bufferSize3 = (int)inputStreamImage.Length;
byte[] bytes3 = new byte[bufferSize3];
inputStreamImage.Read(bytes3, 0, bufferSize3);
inputStreamImage.Close();
mFilesys.write(Context, filevpath, bytes3, 0, bufferSize3, true);
Find more posts tagged with
Comments
VixRox
its done now. the path of the file was wrong