게시판 본문 ASP, ASP.NET, IIS & Script - Read Only
content_type을 가져와서 구분을 주는건가요? |
---|
작성자: 김수민
작성일시: 2005-10-18 16:35,
조회수: 2,024
|
아래와 같은 방법으로 하면 된다고 하는데
nTotalBytes = Request.TotalBytes BinData = Request.BinaryRead(nTotalBytes) strContentType = Request.ServerVariables("CONTENT_TYPE") 이렇게 가져와서 Content-Type: multipart/related; boundary="NextPart_000_0125_01C19839.7237929064"; type=text/xml; start=<0504261047200000000003> 위의 헤더값을가져와서 바운더리(NextPart_000_0125_01C19839.7237929064) 단위로 instr을 이용하여 구분하시고 adostream을 이용하여 base64인코딩 문제도 해결 하실 수 있습니다. <% nTotalBytes = Request.TotalBytes BinData = Request.BinaryRead(nTotalBytes) strContentType = Request.ServerVariables("CONTENT_TYPE") %> 이렇게 하면 일단 content-type 값을 strContentType에 들어가 있으면 문자열을 이용하여 boundary값을 가져와 그다음에 --NextPart_000_0125_01C19839.7237929064 을 구분으로 아래처럼 가와와서 이것을 저장을 하라는말인가요? boundary 구분으로 가져와 저장을 할때 어떤식으로 저장을 해야하는지.... 드디어 2주일간 삽질에 들어갑니다... 누구 mms관련 개발해보신분 답변좀 부탁합니다... 도와주세요ㅠ.ㅠ 구분1 ) --NextPart_000_0125_01C19839.7237929064 Content-Type: text/plain Content-ID: <0503091535401107966893> SKT MMS - MM7 - TEXT PLAIN 구분2 )--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............ |
IP 주소: 211.47.233.226
|
게시물 | ||||
---|---|---|---|---|
1,332 | 2005-11-01 | 6,184 | ||
1,331 |
궁금이 |
2005-10-31 | 1,517 | |
1,330 | 2005-10-31 | 3,438 | ||
1,329 |
궁금이 |
2005-10-31 | 2,829 | |
1,328 | 2005-10-31 | 3,995 | ||
1,327 |
영이 |
2005-10-25 | 1,691 | |
1,326 | 2005-10-25 | 3,476 | ||
1,325 |
궁금이 |
2005-10-18 | 1,707 | |
1,324 | 2005-10-19 | 3,569 | ||
1,323 |
김수민 |
2005-10-17 | 2,995 | |
1,322 | 2005-10-18 | 4,083 | ||
김수민 |
2005-10-18 | 2,024 | ||
1,320 | 2005-10-19 | 3,701 | ||
1,319 |
정규식 표현 질문.... [1] |
영이 |
2005-10-05 | 1,438 |
1,318 | 2005-10-06 | 3,769 | ||
1,317 |
영이 |
2005-10-06 | 1,289 | |
1,316 |
영이 |
2005-09-30 | 1,519 | |
1,315 | 2005-09-30 | 4,139 | ||
1,314 |
영이 |
2005-09-30 | 1,311 | |
1,313 |
파일 큐브 질문입니다. [1] |
궁금이 |
2005-09-28 | 1,222 |
1,312 |
훈스 |
2005-09-28 | 1,283 | |
1,311 | 2005-09-28 | 3,636 | ||
1,310 | 2005-09-28 | 6,629 | ||
1,309 |
궁금이 |
2005-09-28 | 1,241 | |
1,308 | 2005-09-28 | 3,443 |