게시판 본문 ASP, ASP.NET, IIS & Script - Read Only
바이너리 값을 문자열로 변환하여 가져온후 이것을 나눌려면.. |
---|
작성자: 김수민
작성일시: 2006-01-26 14:13,
조회수: 2,117
|
안녕하세요 얼마전에 soap전송관련 문의 드렸던 강수민입니다.
이부서버에서 제가만든페이지로 아래내용을 보내면 nTotalBytes = Request.TotalBytes BinData = Request.BinaryRead(nTotalBytes) strContentType = Request.ServerVariables("CONTENT_TYPE") StrData = BinDecode(BinData) 이렇게 해서 일단 아래코드와 같이 만들었습니다. 테스트로 외부에서 제가만든페이지를 호출하면 StrDate를 파일로 저장하여 확인한 내용입니다. * 아래와같이 받아왔을경우 이것을 아래와 같이 content-type별로 저장을 할려고 합니다. --NextPart_000_0125_01C19839.7237929064 Content-Type: text/xml; charset="ks_c_5601-1987" Content-ID: <0503091537562060013521> 여기는xml내용 --NextPart_000_0125_01C19839.7237929064 Content-Type: text/plain Content-ID: <0503091537562060013521> 여기는 텍스트내용 --NextPart_000_0125_01C19839.7237929064 Content-Type: image/jpeg Content-ID: <0503091537562060013521> 여기는 이미지 --NextPart_000_0125_01C19839.7237929064-- seq=0503091537562060013521 xml = 여기는xml내용 text =여기는 텍스트내용 img = 여기는 이미지 이렇게 변수에 넣어 디비에 등록하고 img는 0503091537562060013521.jpg로 저장을 할려고 합니다. 어떻게 해서 아래처럼 가져오는거 까지는 했는데 위에처럼 할려고 하니 잘 안되네요 아직 내공 부족이라 도움 부탁드립니다. --NextPart_000_0125_01C19839.7237929064 Content-Type: text/xml; charset="ks_c_5601-1987" Content-ID: <0601261337010000000003> <?xml version="1.0" encoding="euc-kr" ?> <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"> <env:Header> <mm7:TransactionID xmlns:mm7="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-0" env:mustUnderstand="1"> 80040 </mm7:TransactionID> </env:Header> <env:Body> <mm7:DeliverReq xmlns:mm7="http://www.3gpp.org/ftp/Specs/aarchive/23_series/23.140/schema/REL-5-MM7-1-0"> <MM7Version>5.3.0</MM7Version> <MMSRelayServerID>203.236.40.107</MMSRelayServerID> <Sender>111111</Sender> <Recipients> <To> <ShortCode11111</ShortCode> </To> </Recipients> <LinkedID></LinkedID> <TimeStamp>Tue, 26 Apr 2005 10:47:20 +0900</TimeStamp> <Priority>Normal</Priority> <Subject></Subject> <Content href="cid:0503091535401107966893"/> </mm7:DeliverReq> </env:Body> </env:Envelope> --NextPart_000_0125_01C19839.7237929064 Content-Type: text/plain Content-ID: <0503091535401107966893> SKT MMS - MM7 - TEXT PLAIN --NextPart_000_0125_01C19839.7237929064 Content-Type: image/jpeg Content-ID: <0503091537562060013521> ......JFIF.............C........... . .2!.!22222222222222222222222222222222222222222222222222..........."..................................... .....................}........!1A..Qa."q.2....#B...R..$3br. .....%&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz....................................................................................................... .....................w.......!1..AQ.aq."2...B.... #3R..br. .$4.%.....&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz..........................................................C..,UU...a.....FK.U.>kQ....R....K......cx.S...\\..\GB.?.U.a.-..........}.M...n......?.z^.v;...*Qk'.c5~.14$}+B;j.>a."...Kk..b...[U.v...u(..z....jU..O.."...q[>Wji...%.f...s.E...so..s.Gr.y..d...Q.....m]..dPt5...=.9.m......oY.[.ov...U9a.....EP....T......K.A&.).p.(....Wy..9.y...uAu<.?.1K.H..,....<}......O......<.!.\}*..s...K.y.>3.1........&.kxr+ -&.............$..S...8..vC/.oQ.{.;....D-L..i73..'..g....ug...U;...R....U.<..c................h...6...o.Z...Z<........'....R.H..{.v.^v~#...y.y...[..M.5B..*...c.......n..b1.b.e.1[.".n...W...."D.w.........+...V...g>s.P.....8.)....Z...... ....p...l. ...I!./.*V.........&..}>Z.G....Gs.......o.....U.Y.Em..>................g.m<.-|...M+z^.>........-T......*........)...M.}j.OV..m|...~....V...J{\.+.........8......>...>w.L ...B....<....%.\e.[..p....z...j.....D..U.e...%.. .S....q....gm.....i..........T9...m^.............j]o......O...>..~..x_B...#.....n.x..A....y....G....k..>s.....u..-!..;F......;...nj.F........=g...BO"=.R..N.sY.5.-..<.#............!.K;.)..V......m.....9......-...........!..2.O..q.&.q..*-Z..S.....?..S...y........;.w..~.[MZ).....e.M.&...*..Vlw....P...W......J.5/..fi..W.".#...j.....|......cA.\X.........i..G..-`..i4...k+Y.q._6.{.x...$.SpT....z.)&i.$p...Kk..e.>..c.. ........A..ou..;..jS}q......sW-.......|.W."........}s...........Vy......n...........R.D.7:.....<....'...F.mu,.y{....?.......)...oT..H/;..>.W..dl.h...h...|.d....V.P>T1..vo......^...'...w.~.g.5cG{.O. ...........A.....\....+Nk...\.r./.d...YX2..m..<....0..l..5r.L...O/ez+.8L[; .(.O...B..a......5.......gO3.Q+...j..0....@G .......*.o....'.........c.+.y.V...........%(...r. .R.G.$E..5..LQ.)...........c.Z......{.T.%.r..U.(....(...>[....B.r.;?....U.....n.d.S......}.V.7.L.~...A..W...8>...#....6.=......Wd.).?x..........o'.......L...e.?...z...In..?.E....v.s.%.%.5..&./..../....^T.e....*..........,..:.7....-k....:`...;......XZ...,...tw'=........1-.....T...z......GS...G.....W+E..]...c..3....F..z.....i..C..t\.&......i]5.../......V.....#F.~.V.qU-........R.. ....Y......^?..q.....#.%.;...5......6......U.n...X.....w,.).....Z.m..m ..N."e.c..3U.,^.s;...&?3.`...fs.|.W~w.~....%./t..2.?3..vWM..4.M..3W.:.c..<C...uo.I"F_...YW.....fvWn.U....g_h.R.Dq...................%.....)S...?....{..T.F.<.t...x......1..D...s-.gj...lA4...o5<.,..)|....J.zk#P...Y.L..K..p.V{IH....K.jgSnkZ..=..[f.fk....5.l..-.R.6..^SYV...O..\V.-J0z.P+ .5..a.y..R....wR...2\.E..9..0........Aj..+.c..1..f.R.^(.......<..<..g\.....kZcY...`d.....1..5gL.4.5....n..,2..2 ........2.jioz.e.4....Z.iqUZ..Ks@.3M...n*9nj..5C ......6j........s&ji......35f............ --NextPart_000_0125_01C19839.7237929064-- |
IP 주소: 211.47.233.226
|
게시물 | ||||
---|---|---|---|---|
1,433 | 2006-02-18 | 5,880 | ||
1,432 |
re: 답변 감사합니다. ^^ [1] |
2006-02-20 | 3,554 | |
1,431 |
끄적 |
2006-02-15 | 1,355 | |
1,430 | 2006-02-16 | 3,591 | ||
1,429 | 2006-02-14 | 3,327 | ||
1,428 | 2006-02-14 | 3,439 | ||
1,427 |
어플리케이션 [2] |
2006-02-10 | 3,345 | |
1,426 | 2006-02-08 | 3,173 | ||
1,425 |
re: 보안접속 [1] |
2006-02-08 | 3,283 | |
1,424 |
김수민 |
2006-02-02 | 1,405 | |
1,423 | 2006-02-02 | 6,873 | ||
1,422 | 2006-02-01 | 4,160 | ||
1,421 | 2006-02-02 | 3,184 | ||
1,420 | 2006-02-02 | 3,191 | ||
1,419 |
궁금이 |
2006-01-31 | 1,671 | |
1,418 | 2006-01-31 | 3,874 | ||
김수민 |
2006-01-26 | 2,117 | ||
1,416 | 2006-01-26 | 3,700 | ||
1,415 |
김수민 |
2006-01-27 | 4,645 | |
1,414 | 2006-01-27 | 3,560 | ||
1,413 |
끄적 |
2006-01-24 | 1,200 | |
1,412 | 2006-01-24 | 3,229 | ||
1,411 |
끄적 |
2006-01-24 | 1,208 | |
1,410 | 2006-01-25 | 3,326 | ||
1,409 |
채범천 |
2006-01-19 | 1,204 |