TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Hassan farrukh
NA
3
0
Passing bytearray by ref in C#
Dec 2 2010 2:00 AM
The input that i have is a byte array containing bytes of an image
e.g.
byte
[] byteData;
string
fileName =
@"C:\pic3.jp2"
;
FileStream
fs =
new
FileStream
(fileName,
FileMode
.Open,
FileAccess
.Read);
BinaryReader
br =
new
BinaryReader
(fs);
long
numBytes =
new
FileInfo
(fileName).Length;
byteData = br.ReadBytes((
int
)numBytes);
Now i have a control named j2k
and i want to use its function
j2k.
OpenMemory() in order to get converted image in jp2 format
its parameters are
openmemory(ref byte src_byte,int src_length)
Now i have a byte array and the function wants me to send it a byte. How can i convert a bytearray into ref byte. I have tried using first element of byte array it got compiled but returned error in executing that line.
Reply
Answers (
4
)
help me
How to send a video from one computer to another through ethernet using udp?