public override IData GetMessageData(IList<Message> messages) { Beetle.Express.IData data = null; byte[] buffer; long index = 0; using (System.IO.MemoryStream stream = new System.IO.MemoryStream()) { foreach (Message message in messages) { stream.Write(new byte[4], 0, 4); byte[] typedata = MessageCenter.GetMessageTypeData(message.Type); stream.Write(typedata, 0, typedata.Length); if (message.Value != null) { var serializer = SerializationContext.Default.GetSerializer(message.Type); serializer.Pack(stream, message.Value); } buffer = stream.GetBuffer(); BitConverter.GetBytes((int)stream.Length - 4 - (int)index).CopyTo(buffer, index); index = stream.Position; } data = new Data(stream.GetBuffer(), (int)stream.Length); data.Tag = messages; } return data; }
public BarcodeForm() { InitializeComponent(); try { string sPath=""; if (isIntermec) sPath = "MEFdemo1.HAL.Intermec.*Control*.dll"; else sPath = "MEFdemo1.HAL.ACME.*Control*.dll"; //I was unable to use the different catalog and let it look in a subfolder //so the plugin names are used as a filter catalog2 = new DirectoryCatalog(".", sPath); foreach (string s in catalog2.LoadedFiles) System.Diagnostics.Debug.WriteLine(s); container2 = new CompositionContainer(catalog2); #if DEBUG //some diagnostics... //see http://mef.codeplex.com/wikipage?title=Debugging%20and%20Diagnostics&referringTitle=Guide // using Samples\.... as in MEF preview 7 and 8 CompositionInfo ci = new CompositionInfo(catalog2, container2); System.IO.MemoryStream ms = new System.IO.MemoryStream(); System.IO.TextWriter tw = new System.IO.StreamWriter(ms); CompositionInfoTextFormatter.Write(ci, tw); System.Diagnostics.Debug.WriteLine(Encoding.UTF8.GetString(ms.GetBuffer(), 0, ms.GetBuffer().Length)); foreach (PartDefinitionInfo pi in ci.PartDefinitions) { System.Diagnostics.Debug.WriteLine("isRejected: " + pi.IsRejected.ToString()); System.Diagnostics.Debug.WriteLine("partInfo: " + pi.PartDefinition.ToString()); } tw.Close(); #endif container2.ComposeParts(this); initBarcode(); } catch (Exception ex) { if (ex is ChangeRejectedException) MessageBox.Show("HW-Components not found!"); else MessageBox.Show("Exception in ComposeParts: " + ex.Message + "\n" + ex.StackTrace); this.Close(); } }
public override IData GetMessagesData(IList<Message> messages) { IData data = null; byte[] buffer; long index = 0; using (System.IO.MemoryStream stream = new System.IO.MemoryStream()) { foreach (Message message in messages) { stream.Write(new byte[4], 0, 4); short typevalue = TypeMapper.GetValue(message.Type); if (typevalue == 0) throw new Exception (string.Format ("{0} type value not registed", message.Type)); byte[] typedata = BitConverter.GetBytes(typevalue); stream.Write(typedata, 0, typedata.Length); if (message.Value != null) ProtoBuf.Meta.RuntimeTypeModel.Default.Serialize(stream, message.Value); buffer = stream.GetBuffer(); BitConverter.GetBytes((int)stream.Length - 4 - (int)index).CopyTo(buffer, index); index = stream.Position; } byte[] array = stream.ToArray(); data = new Data(array,0, array.Length); } return data; }
public string recive() { System.Text.Encoding enc = System.Text.Encoding.UTF8; System.IO.MemoryStream ms = new System.IO.MemoryStream(); byte[] resBytes = new byte[256]; int resSize = 0; if (ns.DataAvailable) { do { //データの一部を受信する resSize = ns.Read(resBytes, 0, resBytes.Length); //受信したデータを蓄積する ms.Write(resBytes, 0, resSize); // 受信を続ける } while (ns.DataAvailable || resBytes[resSize - 1] != '\n'); //受信したデータを文字列に変換 string resMsg = enc.GetString(ms.GetBuffer(), 0, (int)ms.Length); ms.Close(); //末尾の\nを削除 resMsg = resMsg.TrimEnd('\n'); return resMsg; } else { return "0"; } }
public FileContentResult CreateImageCode() { string code = CreateVerifyCode(4); Session["PictureCode"] = code.ToUpper(); int fSize = FontSize; int fWidth = fSize + Padding; int imageWidth = (int)(code.Length * fWidth) + 4 + Padding * 2; int imageHeight = fSize * 2 + Padding; System.Drawing.Bitmap image = new System.Drawing.Bitmap(imageWidth, imageHeight); Graphics g = Graphics.FromImage(image); g.Clear(BackgroundColor); Random rand = new Random(); //给背景添加随机生成的燥点 if (this.Chaos) { Pen pen = new Pen(ChaosColor, 0); int c = Length * 10; for (int i = 0; i < c; i++) { int x = rand.Next(image.Width); int y = rand.Next(image.Height); g.DrawRectangle(pen, x, y, 1, 1); } } int left = 0, top = 0, top1 = 1, top2 = 1; int n1 = (imageHeight - FontSize - Padding * 2); int n2 = n1 / 4; top1 = n2; top2 = n2 * 2; Font f; Brush b; int cindex, findex; //随机字体和颜色的验证码字符 for (int i = 0; i < code.Length; i++) { cindex = rand.Next(Colors.Length - 1); findex = rand.Next(Fonts.Length - 1); f = new System.Drawing.Font(Fonts[findex], fSize, System.Drawing.FontStyle.Bold); b = new System.Drawing.SolidBrush(Colors[cindex]); if (i % 2 == 1) { top = top2; } else { top = top1; } left = i * fWidth; g.DrawString(code.Substring(i, 1), f, b, left, top); } //画一个边框 边框颜色为Color.Gainsboro g.DrawRectangle(new Pen(Color.Gainsboro, 0), 0, 0, image.Width - 1, image.Height - 1); g.Dispose(); //产生波形 image = TwistImage(image, true, 0, 4); System.IO.MemoryStream ms = new System.IO.MemoryStream(); //将图像保存到指定的流 image.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg); return File(ms.GetBuffer(), "image/JPEG"); }
public void TestStreams() { Variant dict = new Variant(Variant.EnumType.Dictionary); dict.Add("key1", new Variant("value1")); dict.Add("key2", new Variant("value2")); Variant input = new Variant(Variant.EnumType.List); for (int i = 0; i < 10000; ++i) { input.Add(dict); } System.IO.MemoryStream istream = new System.IO.MemoryStream(); using(BinaryWriter writer = new BinaryWriter(istream)) { writer.Write(input); } Variant output; System.IO.MemoryStream ostream = new System.IO.MemoryStream(istream.GetBuffer()); using (BinaryReader reader = new BinaryReader(ostream)) { output = reader.Read(); } Assert.True(input.Equals(output)); }
public void ActualizarUsuario(String user, String Pwd, String PwdRecover, String PwdAnswer, PictureBox pb) { try { sql = new SqlConnection(CadCon.Servidor()); sql.Open(); string query = "ActualizarUsuario"; cmd = new SqlCommand(query, sql); cmd.CommandType = System.Data.CommandType.StoredProcedure; cmd.Parameters.Add("@usuario", SqlDbType.NVarChar); cmd.Parameters.Add("@pass", SqlDbType.NVarChar); cmd.Parameters.Add("@PwdRecover", SqlDbType.NVarChar); cmd.Parameters.Add("@PwdAnswer", SqlDbType.NVarChar); cmd.Parameters.Add("@Foto", SqlDbType.Image); cmd.Parameters["@usuario"].Value = user; cmd.Parameters["@pass"].Value = Pwd; cmd.Parameters["@PwdRecover"].Value = PwdRecover; cmd.Parameters["@PwdAnswer"].Value = PwdAnswer; System.IO.MemoryStream ms = new System.IO.MemoryStream(); pb.Image.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg); cmd.Parameters["@Foto"].Value = ms.GetBuffer(); int f = cmd.ExecuteNonQuery(); if (f != 0) { MessageBox.Show("Actualizado exitosamente", "Usuario Almacenado", MessageBoxButtons.OK, MessageBoxIcon.Information); cmd.Dispose(); sql.Close(); } } catch (SqlException ex) { MessageBox.Show(ex.Message); } }
private static void SendMessage(object radarData) { try { if (server == null || server.continueUpdate) { server = new Server(Common.ServerPort); server.Start(); } var data = (radarData as RadarData); if (data == null) return; if (Common.IgnoreWoWWindowActive) { data.IsWowWindowActive = true; } byte[] buffer = null; using (var ms = new System.IO.MemoryStream()) { BlackRain.Serialization.BinarySerializer.SerializeObject<RadarData>(ms, data); buffer = ms.GetBuffer(); ms.Close(); } server.SendMessage(buffer); } catch (Exception exc) { Console.WriteLine(exc.Message); } }
public byte[] WritePacket(SLPacket packet) { System.IO.MemoryStream ms = new System.IO.MemoryStream(); System.Xml.Serialization.XmlSerializer serializer = new System.Xml.Serialization.XmlSerializer(packet.GetType()); serializer.Serialize(ms, packet); return ms.GetBuffer(); }
private async Task<string> DecodeResponse(HttpWebResponse response) { foreach (System.Net.Cookie cookie in response.Cookies) { _cookies.Add(new Uri(response.ResponseUri.GetLeftPart(UriPartial.Authority)), cookie); } if (response.StatusCode == HttpStatusCode.Redirect) { var location = response.Headers[HttpResponseHeader.Location]; if (!string.IsNullOrEmpty(location)) return await Get(new Uri(location)); } var stream = response.GetResponseStream(); var buffer = new System.IO.MemoryStream(); var block = new byte[65536]; var blockLength = 0; do{ blockLength = stream.Read(block, 0, block.Length); buffer.Write(block, 0, blockLength); } while(blockLength == block.Length); return Encoding.UTF8.GetString(buffer.GetBuffer()); }
private void btnAdd_Click(object sender, EventArgs e) { newPicture = new Images(); newPicture.TIPO = eTipoImages.ARTICULO; newPicture.CODIGO = COD_ARTICULO; // Se crea el OpenFileDialog OpenFileDialog dialog = new OpenFileDialog(); dialog.Multiselect = false; dialog.Filter = "Bitmap files (*.bmp)|*.bmp|Gif files (*.gif)|*.gif|JGP files (*.jpg)|*.jpg|All (*.*)|*.* |PNG (*.*)|*.png "; // Se muestra al usuario esperando una acción DialogResult result = dialog.ShowDialog(); // Si seleccionó un archivo (asumiendo que es una imagen lo que seleccionó) // la mostramos en el PictureBox de la inferfaz if (result == DialogResult.OK) { IMAGEN.BackgroundImage = Image.FromFile(dialog.FileName); // Stream usado como buffer System.IO.MemoryStream ms = new System.IO.MemoryStream(); // Se guarda la imagen en el buffer IMAGEN.BackgroundImage.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg); // Se extraen los bytes del buffer para asignarlos como valor para el // parámetro. newPicture.IMAGEN = ms.GetBuffer(); DialogResult guardar = MessageBox.Show("¿Guardar Imagen ?", "Confirmar", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation); if (guardar == DialogResult.Yes) { if (dbImages.guardarImagen(newPicture,HOME.Instance().USUARIO.COD_EMPLEADO)) { cargarImagenes(); } } } }
/// <summary> /// Uses the System formatters to save the MapXtreme objects in the session state as a binary blob. /// </summary> /// <param name="ser">A serializable object.</param> /// <remarks>If you simply send it to the Session state it will automatically extract itself the next time the user accesses the site. This allows you to deserialize certain objects when you want them. This method takes an object and saves it's binary stream.</remarks> /// <returns>A byte array to hold binary format version of object you passed in.</returns> public static byte[] BinaryStreamFromObject(object ser) { System.IO.MemoryStream memStr = new System.IO.MemoryStream(); System.Runtime.Serialization.Formatters.Binary.BinaryFormatter formatter = new System.Runtime.Serialization.Formatters.Binary.BinaryFormatter(); formatter.Serialize(memStr, ser); return memStr.GetBuffer(); }
public override IData GetMessageData(IList<Message> messages) { Beetle.Express.IData data = null; byte[] buffer; long index = 0; using (System.IO.MemoryStream stream = new System.IO.MemoryStream()) { foreach (Message message in messages) { stream.Write(new byte[4], 0, 4); short typevalue = TypeMapper.GetValue(message.Type); if (typevalue == 0) "{0} type value not registed".ThrowError<Exception>(message.Type); byte[] typedata = BitConverter.GetBytes(typevalue); stream.Write(typedata, 0, typedata.Length); if (message.Value != null) { var serializer = SerializationContext.Default.GetSerializer(message.Type); serializer.Pack(stream, message.Value); } buffer = stream.GetBuffer(); BitConverter.GetBytes((int)stream.Length - 4 - (int)index).CopyTo(buffer, index); index = stream.Position; } byte[] array = stream.ToArray(); data = new Data(array, array.Length); data.Tag = messages; } return data; }
public byte[] Serialize(IDictionary<string, object> map) { using (var stream = new System.IO.MemoryStream()) { serial.Serialize(stream, map); return stream.GetBuffer(); } }
private FileContentResult ImageToFile(Bitmap img) { using (var memStream = new System.IO.MemoryStream()) { img.Save(memStream, System.Drawing.Imaging.ImageFormat.Jpeg); return File(memStream.GetBuffer(), "image/jpeg"); } }
public byte[] Serialize(BuildInTypesDto dto) { using (var stream = new System.IO.MemoryStream()) { JsonSerializer.SerializeToStream<BuildInTypesDto>(dto, stream); return stream.GetBuffer(); } }
public void TestGetResponseAsync1() { WebRequest request = WebRequest.Create("http://httpbin.org/get"); request.Method = "GET"; MemoryStream outputStream = new MemoryStream(); Task testTask = WebRequestExtensions.GetResponseAsync(request) .Then(task => StreamExtensions.CopyToAsync(task.Result.GetResponseStream(), outputStream)); testTask.Wait(); Assert.AreEqual(TaskStatus.RanToCompletion, testTask.Status); Console.Error.WriteLine(Encoding.UTF8.GetString(outputStream.GetBuffer())); GetData getData = JsonConvert.DeserializeObject<GetData>(Encoding.UTF8.GetString(outputStream.GetBuffer())); Assert.AreEqual(request.RequestUri.OriginalString, getData.url); }
public static string getDesktopInBase64() { System.IO.MemoryStream m = new System.IO.MemoryStream(); System.Drawing.Image bp = getDesktopBitmap();//new System.Drawing.Bitmap(@“c:/demo.GIF”); bp.Save(m, System.Drawing.Imaging.ImageFormat.Png); //bp.Save("d:\\abc.png", System.Drawing.Imaging.ImageFormat.Png); byte[]b= m.GetBuffer(); string base64string=Convert.ToBase64String(b); return base64string; }
private void buttonAgregarArticulo_Click(object sender, EventArgs e) { Servicio servicioNuevo = new Servicio(); servicioNuevo.Nombre = textBoxNombre.Text; servicioNuevo.Codigo = textBoxCodigo.Text; servicioNuevo.Descripcion = textBoxDescripcion.Text; servicioNuevo.Comentario = textBoxComentario.Text; servicioNuevo.Precio = Convert.ToDouble(textBoxPrecio.Text); servicioNuevo.Unidad = textBoxUnidad.Text; byte[] imagenInsertar; LogicaServicios.insertarServicio(servicioNuevo, empresa); if (pictureBox1.Image != null) { // Stream usado como buffer System.IO.MemoryStream ms1 = new System.IO.MemoryStream(); // Se guarda la imagen en el buffer pictureBox1.Image.Save(ms1, System.Drawing.Imaging.ImageFormat.Jpeg); // Se extraen los bytes del buffer para asignarlos como valor para el parámetro. imagenInsertar = ms1.GetBuffer(); LogicaServicios.insertarImagen(servicioNuevo.Codigo, imagenInsertar); } if (pictureBox2.Image != null) { System.IO.MemoryStream ms2 = new System.IO.MemoryStream(); pictureBox2.Image.Save(ms2, System.Drawing.Imaging.ImageFormat.Jpeg); // Se extraen los bytes del buffer para asignarlos como valor para el parámetro. imagenInsertar = ms2.GetBuffer(); LogicaServicios.insertarImagen(servicioNuevo.Codigo, imagenInsertar); } if (pictureBox3.Image != null) { System.IO.MemoryStream ms3 = new System.IO.MemoryStream(); pictureBox3.Image.Save(ms3, System.Drawing.Imaging.ImageFormat.Jpeg); // Se extraen los bytes del buffer para asignarlos como valor para el parámetro. imagenInsertar = ms3.GetBuffer(); LogicaServicios.insertarImagen(servicioNuevo.Codigo, imagenInsertar); } if (pictureBox4.Image != null) { System.IO.MemoryStream ms4 = new System.IO.MemoryStream(); pictureBox4.Image.Save(ms4, System.Drawing.Imaging.ImageFormat.Jpeg); // Se extraen los bytes del buffer para asignarlos como valor para el parámetro. imagenInsertar = ms4.GetBuffer(); LogicaServicios.insertarImagen(servicioNuevo.Codigo, imagenInsertar); } if (pictureBox5.Image != null) { System.IO.MemoryStream ms5 = new System.IO.MemoryStream(); pictureBox5.Image.Save(ms5, System.Drawing.Imaging.ImageFormat.Jpeg); // Se extraen los bytes del buffer para asignarlos como valor para el parámetro. imagenInsertar = ms5.GetBuffer(); LogicaServicios.insertarImagen(servicioNuevo.Codigo, imagenInsertar); } MessageBox.Show("El artículo de tipo servicio ha sido insertado", "Información", MessageBoxButtons.OK); this.Dispose(); }
public static byte[] Convert(Bitmap bmp) { System.IO.MemoryStream mms1 =new System.IO.MemoryStream(); bmp.Save(mms1,System.Drawing.Imaging.ImageFormat.Png); Byte[] dats = mms1.GetBuffer(); mms1.Close(); return dats; }
/// <summary> /// Convert a bitmap to a byte array /// </summary> /// <param name="bmp"></param> /// <returns></returns> public static byte[] GetBytes(Bitmap bmp) { if (bmp == null) return new byte[0]; System.IO.MemoryStream stream = new System.IO.MemoryStream(); bmp.Save(stream, System.Drawing.Imaging.ImageFormat.Png); // maybe // bmp.Dispose(); return stream.GetBuffer(); }
/// <summary> /// Retourne l'objet serialisé au format xml /// </summary> /// <param name="value">The value.</param> /// <returns></returns> public static string SerializeToXml(this object value) { StringBuilder sb = new StringBuilder(); using (System.IO.MemoryStream ms = new System.IO.MemoryStream()) { System.Xml.Serialization.XmlSerializer serializer = new System.Xml.Serialization.XmlSerializer(value.GetType()); serializer.Serialize(ms, value); sb.Append(System.Text.Encoding.UTF8.GetString(ms.GetBuffer())); ms.Close(); } return sb.ToString(); }
public static string ObjToString(object obj) { System.IO.MemoryStream ms = new System.IO.MemoryStream(); // System.Runtime.Serialization.Formatters.Binary.BinaryFormatter bf = new System.Runtime.Serialization.Formatters.Binary.BinaryFormatter(); System.Runtime.Serialization.Formatters.Binary.BinaryFormatter bf = new System.Runtime.Serialization.Formatters.Binary.BinaryFormatter(); bf.Serialize(ms, obj); byte[] data = new byte[ms.Position]; System.Array.Copy(ms.GetBuffer(), data, data.Length); string hexstr = ToHexString(data).Replace(" ", ""); return hexstr.Trim(); }
public MainForm() { InitializeComponent(); try { catalog = new DirectoryCatalog(".", "MEFdemo1.Plugins.*.dll"); container = new CompositionContainer(catalog); container.ComposeParts(this); #if DEBUG //some diagnostics... //see http://mef.codeplex.com/wikipage?title=Debugging%20and%20Diagnostics&referringTitle=Guide // using Samples\.... as in MEF preview 7 and 8 CompositionInfo ci = new CompositionInfo(catalog, container); System.IO.MemoryStream ms = new System.IO.MemoryStream(); System.IO.TextWriter tw = new System.IO.StreamWriter(ms); CompositionInfoTextFormatter.Write(ci, tw); System.Diagnostics.Debug.WriteLine(Encoding.UTF8.GetString(ms.GetBuffer(), 0, ms.GetBuffer().Length)); foreach (PartDefinitionInfo pi in ci.PartDefinitions) { iPluginCount++; System.Diagnostics.Debug.WriteLine("isRejected: " + pi.IsRejected.ToString()); System.Diagnostics.Debug.WriteLine("partInfo: " + pi.PartDefinition.ToString()); } tw.Close(); #else foreach (PartDefinitionInfo pi in ci.PartDefinitions) { iPluginCount++; } #endif drawPlugins(); } catch (Exception ex) { MessageBox.Show("No Plugins loaded: " + ex.Message); } }
public void TestGetRequestStreamAsync() { WebRequest request = WebRequest.Create("http://httpbin.org/post"); request.Method = "POST"; string sampleData = "Sample Data"; byte[] buffer = Encoding.UTF8.GetBytes(sampleData); MemoryStream outputStream = new MemoryStream(); Task testTask = WebRequestExtensions.GetRequestStreamAsync(request) .Then(task => StreamExtensions.WriteAsync(task.Result, buffer, 0, buffer.Length, CancellationToken.None)) .Then(task => WebRequestExtensions.GetResponseAsync(request)) .Then(task => StreamExtensions.CopyToAsync(task.Result.GetResponseStream(), outputStream)); testTask.Wait(); Assert.AreEqual(TaskStatus.RanToCompletion, testTask.Status); Console.Error.WriteLine(Encoding.UTF8.GetString(outputStream.GetBuffer())); PostData postData = JsonConvert.DeserializeObject<PostData>(Encoding.UTF8.GetString(outputStream.GetBuffer())); Assert.AreEqual(sampleData, postData.data); Assert.AreEqual(request.RequestUri.OriginalString, postData.url); }
/// <summary> /// /// </summary> /// <param name="informations"></param> /// <param name="savePath"></param> public static void SaveConfigureInfos(ConfigureInfosStrcut informations, string savePath) { SoapFormatter oXmlFormatter = new SoapFormatter(); System.IO.MemoryStream oMemStream = new System.IO.MemoryStream(); oXmlFormatter.Serialize(oMemStream, informations); System.IO.FileStream oFileStream = new System.IO.FileStream(savePath, System.IO.FileMode.Create, System.IO.FileAccess.Write, System.IO.FileShare.ReadWrite); byte[] oBytes = oMemStream.GetBuffer(); oFileStream.Write(oBytes, 0, oBytes.Length); oFileStream.Close(); }
static void TestBlob() { var id = 5; var file = new System.Drawing.Bitmap(@"/Users/anton/personal/image/foto-ktm.jpg"); using (var m = new System.IO.MemoryStream()) { file.Save (m, System.Drawing.Imaging.ImageFormat.Jpeg); Db.ArticleFile.InsertOrUpdate (id, new { File = m.GetBuffer() }); } var a = Db.ArticleFile.Get (id); using (var m = new System.IO.MemoryStream(a.File)) { var i = new System.Drawing.Bitmap (m); i.Save ("foto-ktm.jpg"); } Db.Dispose (); }
public async Task TestReadFromJson_Big() { var env = await TestEnvironment.CreateSimpleAsync(); var doc = new XDocument(new XElement("vault")); var drive = new GlacierPseudoDrive(env.Account, "dummy_id", doc); var json = "{\"VaultARN\":\"arn:aws:glacier:us-west-2:910294204401:vaults/photo-2016\",\"InventoryDate\":\"2016-04-20T09:43:14Z\",\"ArchiveList\":[{\"ArchiveId\":\"Tk48MyZyztbMpThoat35QyiIkmP4Xx3YmbDustKlJRge8DdnM6C1WnCKOlUY5q2kSwFKO7Va2VgsvNuSMTBVUYEvsKgL3Gtb1_tuKW3ERI08POB4Ouit4wqLIxRunrH0-UsVYUbWAQ\",\"ArchiveDescription\":\"LeraPhone1/20150821_220225.jpg\",\"CreationDate\":\"2016-04-19T18:08:15Z\",\"Size\":1688827,\"SHA256TreeHash\":\"a084faa3bd9c00e2484072e4ba242767f36d3fee6be62f16eeedd33fbdfbcc51\"},{\"ArchiveId\":\"YT52WYNbqb1oe7nqbDVvKcTrj_bpK14A0vPnyGByWs02AchghtglK5rc7hTi-_GJZk1yyGg0tgT3s9jDkIsAYtc_geHMuDWgtQC_wZs5B9xtTRnZQGpqiVzjuslwBRzRu3OUwKBAAw\",\"ArchiveDescription\":\"LeraPhone1/20150821_220240.jpg\",\"CreationDate\":\"2016-04-19T18:08:16Z\",\"Size\":1781906,\"SHA256TreeHash\":\"583a9ede42a00eb8838b58b13a2d95b8afed79f30d49412fe0ec2188201af081\"},{\"ArchiveId\":\"baC1h558x0J5FJg07QtvRUCbtMGYh3nQEK-njjJDPQPUS8m4K8pqF1IEkhLu1hlpb_6OeqXi92rgTzrYvOcJBYxx2odf1SP6Oy-87QUClMTKQTnsk0joXR2uoqdK86jW-aGJT9TJwQ\",\"ArchiveDescription\":\"LeraPhone1/20150821_220237.jpg\",\"CreationDate\":\"2016-04-19T18:08:16Z\",\"Size\":1793862,\"SHA256TreeHash\":\"0bb8538bdf8c72814cb05755c74e47ac43dfbca30ad921a070d93f20da191409\"},{\"ArchiveId\":\"hXerjfOztIw-uRt8cvxR_pzonOGIA8inK5zvrh-ETpl2ywYjw-Ncr6UZedAQ_blAwZb43KVLcZ5eYoDoWQUSFRfkkKxO704xxoqbYVQy45tibB4yyD3tLt13fuVBm-3Ic3RYQDDChw\",\"ArchiveDescription\":\"LeraPhone1/20150821_220236.jpg\",\"CreationDate\":\"2016-04-19T18:08:16Z\",\"Size\":1698278,\"SHA256TreeHash\":\"349025cd1a2c2590141fc5535e666c07b242a9fb905a0a37355a73c9618fa518\"},{\"ArchiveId\":\"NSTqmc5LX3bvG1Ww5JJPTH880keCAVCsRUgIEIU0vnMfDieB2mR9hHbC0J2ZmUM5iq-ehOjdN666ackC4PkVzMgNyWCQRMz6toOpt0ucqIyGCcpsHApx-zQBj34y5EsxBbk61z0qWg\",\"ArchiveDescription\":\"LeraPhone1/20150821_220439.jpg\",\"CreationDate\":\"2016-04-19T18:08:17Z\",\"Size\":1809047,\"SHA256TreeHash\":\"2669c1e4054f15ecbd9addf1c9a971ab54ec0d774a3b15f0ac2942c53bdb7e38\"},{\"ArchiveId\":\"dHRFxvF41jgU5tM_Gh20uZKPcq85V3LK5c45klHEs5r2WTSidf3yz6jxlQ5oqQ6_-EoMtr4gB3VNutUKcLDH2R5Rn7e6SypI2bo55NujbFpQS6aOaPinq0dd9cepfLNuWUG6WfQnuw\",\"ArchiveDescription\":\"LeraPhone1/20150821_220238.jpg\",\"CreationDate\":\"2016-04-19T18:08:17Z\",\"Size\":1814995,\"SHA256TreeHash\":\"75dabd112104657e9ad93c4155d6793bdfbe5b441caaafcbe317a3f6c794ded2\"},{\"ArchiveId\":\"A42N0XKsgqqVH_HwAR1MvLHFtkTjzbfYr4SbUrB6-G9PqAM5NZelTNlaWxFLVfqlUkcYSXhbzOjhs6c19zjUMY4uRmknycjO3ydoLOorNMUa2sPpfcq1cRsnW6dT-e6Zv7RUZIwrhw\",\"ArchiveDescription\":\"LeraPhone1/20150828_113850(0).jpg\",\"CreationDate\":\"2016-04-19T18:08:18Z\",\"Size\":2594920,\"SHA256TreeHash\":\"1d16b887e29cfd01979a9c881cd2bf9afd98cb6a59b76ec3975e5c63dbf4fc13\"},{\"ArchiveId\":\"cy1ck7AY7sVIi5_o7CIL5Y8ggjFXHh2T5Sq4XbcANGC5fnFUxjT6Spc1s-qZdHpAH4imK6KxWb8vxvZmqATXFMOp1vbMfkVcU0rxcxZwR070c-z5xYhNQZ78FjClCiIAFiWtX-Nx3g\",\"ArchiveDescription\":\"LeraPhone1/20150821_220428.mp4\",\"CreationDate\":\"2016-04-19T18:08:18Z\",\"Size\":8372043,\"SHA256TreeHash\":\"3e65552d9af0a895c4b54622ac8b96c931807e7f328b25ae4cb9708b1d98fa0c\"},{\"ArchiveId\":\"kkKuMOTJgf6s7S04DEMw-nr-jbMQUnScLjGqmwnf2YlkS_CrAq3IabDzHHiW_kEJ3LcLTbK9uS5rSpcOk1pGqiGXlwQXHaRV-wncyFF06qxObib37zGX5AmC4DZm_u0epGXr7MmzvA\",\"ArchiveDescription\":\"LeraPhone1/20150821_220438.jpg\",\"CreationDate\":\"2016-04-19T18:08:18Z\",\"Size\":1639474,\"SHA256TreeHash\":\"c441be3e1cfa17e880b23a4573d63680d45adf3bd775f9c629a3d711eabc8021\"},{\"ArchiveId\":\"O23rvc1-r6m13R8_9Bkrtk8UMEqfzGrmzk10h0oYTEcahXg3bPZGRiB-pEW9ILs6ZQ780n4eyEaW5WtdKgjEpfXULWeIf-wvnUiElFntjXQPghT4pEep-Vttw3N1aXk-LUhS0SD2NA\",\"ArchiveDescription\":\"LeraPhone1/20150821_220258.mp4\",\"CreationDate\":\"2016-04-19T18:08:19Z\",\"Size\":26624440,\"SHA256TreeHash\":\"c055a8503627e4646d8b2c8d3491d7cdaaf1ab8e03910e99562f0fbcb4620c20\"},{\"ArchiveId\":\"ihUYU07JmZqA_MG1xN1hJUHXQBO7Ni-PfRTwnjZ_W0_hlYrRGMEQTdlfbK4hDWNGdBjy9VcJCm7f_TWFNXoq3wWBzdcyuDW3J7cqaf_ploGE4NhwrZeJExMfA8Z_6WOFi-v2qZI07g\",\"ArchiveDescription\":\"LeraPhone1/20150828_113857(0).jpg\",\"CreationDate\":\"2016-04-19T18:08:19Z\",\"Size\":2538526,\"SHA256TreeHash\":\"66585361a3e838b2e972b294e69f70390492e57c574dc3c4337b80ed95122c0a\"},{\"ArchiveId\":\"GTPShmxqke3Ucl27Y3SBELq_cRISqYdoa4VwRbuWj8gD-X2a-Ypruv4r8TJx-EF7EHVghw0ZT1XGh0IP99Ajc5DKKyG0wVldSHqQqsrqYrGY_4Akz5Xv-jk8QO2RiJmusxC8rkmWiA\",\"ArchiveDescription\":\"LeraPhone1/20150902_131641.mp4\",\"CreationDate\":\"2016-04-19T18:08:20Z\",\"Size\":10948726,\"SHA256TreeHash\":\"fdc19cf581dfb215aad4e1996f6d300b4822357afe2926b24cd18cc60f2c3572\"},{\"ArchiveId\":\"Qb9I4FnREKeRKXscHt2jx3vc1m_CX7HV8sxbUOCdAgsA1P2xBL_GoIhMTS8AAbjBB_vArHO5hDmAGWBP4zOOe-azoxKFSMJAuLXeWyKds2p5mzg0c1DowTmcURJjULX8F8b3nx66MA\",\"ArchiveDescription\":\"LeraPhone1/20150829_212347_LLS.jpg\",\"CreationDate\":\"2016-04-19T18:08:20Z\",\"Size\":1471440,\"SHA256TreeHash\":\"35717e9c570d32a32eb71264febe5edce0d8d978ae738a91ef8fd88b45c9f8d9\"},{\"ArchiveId\":\"jiwqLxSRiPadVAppEGHoje4SGJAdWE4-n2sTgbe4KNBDmgXgXl-mOya1FHb35eQUAnUexwo0BN_dqR0X3BBbVEcuu9Kum4DKfzjOYRc9DL_J3Hc-eoeid8-GE47AwOQbG79k3jZqdQ\",\"ArchiveDescription\":\"LeraPhone1/20150902_131651.mp4\",\"CreationDate\":\"2016-04-19T18:08:22Z\",\"Size\":19648798,\"SHA256TreeHash\":\"f7d068c1a1f420b4fefe7cabaaaba630c691b282b28154f04c3e296f2eae137c\"},{\"ArchiveId\":\"lVSnu91P6vuJ4xnacsfb4lmFEQ_YbavUF--gnCZEuVuO2SHDhvDpBVtB52r0zB7h5alu1gHaIb3kXhJBjQMp6XwZp_N-Wob0PsDQuzVmvtGx8AwkHBo9Vz9FeV1duiEddHggoP11dw\",\"ArchiveDescription\":\"LeraPhone1/20150905_145307.jpg\",\"CreationDate\":\"2016-04-19T18:08:22Z\",\"Size\":3118259,\"SHA256TreeHash\":\"7576a4de610ba68a32f9db2ae1ece952a28077df20407979709b20f61e1744b3\"},{\"ArchiveId\":\"Y12cPZcBwBa5nS9i7vlY0p2B5PgHvy23svZ2JXTmv1EY3FaM3n4YMpctZb7D8yOfua52KeQR6fINiVo0egWLL-3OyK6XfEY_puHCUjfEEAVcPIKbXek2UrH4W1zisP1GE9jmLog2mw\",\"ArchiveDescription\":\"LeraPhone1/20150905_145309.jpg\",\"CreationDate\":\"2016-04-19T18:08:23Z\",\"Size\":3029266,\"SHA256TreeHash\":\"900834a76bad31b1fd108a5ae99455a3b7329c4745bbf12f69a6a55c6adc042d\"},{\"ArchiveId\":\"fOresAy3UQHoUZGWx7sTNvgWHdjfKy10asRVlkNKTu6puO8P1bBgy_mbWRwcl1HbeqQULnvu_wY8uQi2tjJ_iw2VEW1nKXWHGSN3O8MXUUuI9uGbv2Y7sHCnu7VLbgYR4Zkhx9sEQQ\",\"ArchiveDescription\":\"LeraPhone1/20150905_145312.jpg\",\"CreationDate\":\"2016-04-19T18:08:24Z\",\"Size\":2800117,\"SHA256TreeHash\":\"4d4402c202426f872ece56ed16c0a6f48a7bf69cd7a2c277f324b95deb47c646\"},{\"ArchiveId\":\"Oc9kBsv6oPQhq-KxpXS4GngjNBtpdrrOviW1F3gr0SmJ2bOAg46GYyE4ru-7TzHUMmRSlo2dlLk6z33GMHlEXRZSiRvFTP7k1LnI3WQxWIVePVsigZ5btGkMNRuNUVjSlZ-aXR1WCQ\",\"ArchiveDescription\":\"LeraPhone1/20150905_145323.jpg\",\"CreationDate\":\"2016-04-19T18:08:25Z\",\"Size\":391871,\"SHA256TreeHash\":\"fa5a463c0ddd628082958e4994354cd5d0746204fb396ae40ce83566ba09709b\"},{\"ArchiveId\":\"xNuuECw7sDc02-kjOrb_BnNed2fkX03q7GD3RNL18CKtLINym2Z_YZ9H20u2IqyMwHk017c45MhiTG4gpbCWIaUJnk5jedRlmf1KbyN0TfyIIWEMYAHgaRqbwZCPwYft1XMcwsEyaw\",\"ArchiveDescription\":\"LeraPhone1/20150905_145313.jpg\",\"CreationDate\":\"2016-04-19T18:08:25Z\",\"Size\":2906191,\"SHA256TreeHash\":\"135d5ee977aa8af182b8bfaeb5a2056712b31e32543a6978fdac27d5da1673dc\"},{\"ArchiveId\":\"92J71ejuXlud-JbgfCq9M7w-MlLlYlad7IhPYYdVXUcVJc12jAACe8rnoAI2ru9Css6XbxLwqvCfVN6d5zIpP3SzBwUPVZ_gO7QmKWAWb8J8xo3FCJ_eKIlq7wmKA8zIvE5OboZ1Fg\",\"ArchiveDescription\":\"LeraPhone1/20150906_180335.jpg\",\"CreationDate\":\"2016-04-19T18:08:32Z\",\"Size\":897555,\"SHA256TreeHash\":\"ccc6398b4800644530a33d53a3a006a3e983e029cedbb803dc2be0bf6d5417f8\"},{\"ArchiveId\":\"SxW_kJIsVAnorFyEx3q5Bcvw2burWZRoTZ0F7RkipBZrvOO8CCGtNKV11OTA2AgAnRoestV44PM-p_VYiob9iTaFpEYIMWaIRjwMFaqHVfTp8T-yq4KFu_zjUjxi4OJkTG09KUcCvA\",\"ArchiveDescription\":\"LeraPhone1/20150906_180345.jpg\",\"CreationDate\":\"2016-04-19T18:08:32Z\",\"Size\":223214,\"SHA256TreeHash\":\"294788a75abd4820db39702cc8c7c4e867bfc7a0f48427e876ece3f06afcdb21\"},{\"ArchiveId\":\"OauU6d0PjN4Wxdq5u1rGRE64n7QlJZQnTtInsvB9NOpinail25A5nICnXOW_YZMuxx57aUlqFE4JLJYZODqRIYHvr2bTCAuomjEOa13w4s5eIpM2YU5KIDbiUW_vs14SBFXgl9TNZw\",\"ArchiveDescription\":\"LeraPhone1/20150911_192849.jpg\",\"CreationDate\":\"2016-04-19T18:08:33Z\",\"Size\":2098728,\"SHA256TreeHash\":\"b780266f17923e5e2108f33af5378c149237ee214660f71db30305922bdc11b1\"},{\"ArchiveId\":\"miwJxYF-2c_kHBfHJuOi20v5gY8PpQjQgn0SGa20KQAukLLgbP65kYvmHjP5YcM5Djbs7dkt7Nb_p-ZLLIR9NqNEuHBj4RDpiM3yk39_pUmeczrdcD_Zs7Jwh1hV-aEIjjqaMOJ8xA\",\"ArchiveDescription\":\"LeraPhone1/20150909_182454.jpg\",\"CreationDate\":\"2016-04-19T18:08:33Z\",\"Size\":1782032,\"SHA256TreeHash\":\"708f63a6d2c8c42db2a8699cff26857947f5ff577894465673679c5c06098d4b\"},{\"ArchiveId\":\"z-mifTRIeShff4qRw0C57wWQ0-6lxbfU8AvN-skufjkpipymYnT9RX1hInjMbfyzBp40f8DkgFyY7YEJXxBH2tKZT8Z2l1wJRpz1rFgRUruQrE9GXsOVOWBeDH25dKDthnseARkinw\",\"ArchiveDescription\":\"LeraPhone1/20150911_192821.jpg\",\"CreationDate\":\"2016-04-19T18:08:33Z\",\"Size\":2406422,\"SHA256TreeHash\":\"96334cf02ccd39162bc4f074241e42710ea883a88ca48a302d99d9e65cb59b24\"},{\"ArchiveId\":\"yEqoKnZaoxxwtA02rg28Cn8p5IQLHkMCFhwPnRMLkygvcxZrIn9tXtAFzMJJWPe87JUXc6XpWS3XFYbxYU9dV-NF9E6OGtlbSDXXx8xXf_kus1qstsN0IuB4RIyWBoTJA0mVhaPNPQ\",\"ArchiveDescription\":\"LeraPhone1/20150911_192850.jpg\",\"CreationDate\":\"2016-04-19T18:08:34Z\",\"Size\":2185544,\"SHA256TreeHash\":\"02e4543c77c897529e032e912c05a044424ec052b8959aedf61469c155d99882\"},{\"ArchiveId\":\"BUEFbyS2DfJ5YoL3CYxH-TYjeBSJ-ncEo-sscNwMPZLhguGJViaw8CdOktiMQy6DLRJXxe2XeiKQiIRQIXywrPKx57fEpsE-umT6zRx-VO_JrWaXFcfmJXIKDoE193p4S5hODJ9CGg\",\"ArchiveDescription\":\"LeraPhone1/20150911_192855.jpg\",\"CreationDate\":\"2016-04-19T18:08:36Z\",\"Size\":1791666,\"SHA256TreeHash\":\"15f83ad7d360cc89b4c8f495a2221a39a44b6774f54bba348aa358b5d9a3b8f5\"},{\"ArchiveId\":\"4sOn5y-pGkxMIz4lAR_o7sOAoKO7AGaV8KnkSRJed0ZXnDX-QPWW2vb-3RXfQlYllueg-7Wvg20qbfyavBzOql14TlHAu0ke373bDPoyG49zxnDgx7PlRrLp5hMc0Rx_mdSbZfFfkg\",\"ArchiveDescription\":\"LeraPhone1/20150915_190306.jpg\",\"CreationDate\":\"2016-04-19T18:08:38Z\",\"Size\":1927975,\"SHA256TreeHash\":\"c046c4e2cc7dfb9274ab1802e46f8d3ef068b37af1ec5efe27a9450552f510a2\"},{\"ArchiveId\":\"wBS32DsbaOSt66fptJWKSmAH5pkxNxBGQ-p0veNFztRb6RHiQkbN_56BMcjdjUf4U0OMwNpLmM2m7yQAfp8lC1xDsMh3nVp5y2rdc6GUjaFZURJsv9EeLc3_44AAF4kDA4jBPRyqnw\",\"ArchiveDescription\":\"LeraPhone1/20150915_190305.jpg\",\"CreationDate\":\"2016-04-19T18:08:38Z\",\"Size\":1955449,\"SHA256TreeHash\":\"3f6eaf5b07998b76561887d6c71c7054203d8bc623065f466c3fbde91fb112fa\"},{\"ArchiveId\":\"cnkJraIOZaSSiXwvWyu5Ocgf2cFRj1eamFz-VQUKyvnqETPtQaxjSTHDJ9bJ-QR5uw2DuMCyXGTBDX4swqG0M_1UygbHMppAWzlWojIs5Acohd-9JlLyAy8LJ0NSUxoDRIb_jYKHJQ\",\"ArchiveDescription\":\"LeraPhone1/20150917_184131.jpg\",\"CreationDate\":\"2016-04-19T18:08:39Z\",\"Size\":2076724,\"SHA256TreeHash\":\"4ef53afe79a85cab0deff1befa4908c2f93e8aaaf41c6a7332b517d22a256245\"},{\"ArchiveId\":\"eHLiBXb7N1p3Lh-apMR0mfaaHqCQq-4cXRZVwxIMiLn5ZGma4t3qdwRa_kt-8PPKjI4FwFrrWPS6azyS2Z2XlFXPs7tjQ08-ZuGbFVghnV74DnbhArc35THkOP1SRhi3Rh8ow5v7rA\",\"ArchiveDescription\":\"LeraPhone1/20150917_184130.jpg\",\"CreationDate\":\"2016-04-19T18:08:39Z\",\"Size\":2077879,\"SHA256TreeHash\":\"453bd7b4b99c9ed4a7f53617249f17925ca2539c85b84e1d7a3d1a3c874de542\"},{\"ArchiveId\":\"qdYalpAd1zS6G45KDRyOQ0CVp6ukaA1w65-OkC-12Qw-0JzIsheHkmkJ-Up8R2fDC5cJGJ0qB2Y9h1s4cenEu01EHO4uA6Ca5uJSagccElCd-mMLICGzf-CTAkPaYOcp9eF5jnw93A\",\"ArchiveDescription\":\"LeraPhone1/20150919_094154.jpg\",\"CreationDate\":\"2016-04-19T18:08:40Z\",\"Size\":2032351,\"SHA256TreeHash\":\"0d808fc06a58bc10557b3a586c9c4e48b0d2579d6f108711dc1b554c75a5e59f\"},{\"ArchiveId\":\"l5YTU03VXham0cZ2HcboQHt5qb4j5Um-tANAkwtQZeZdDrZAhuhyMIupHq-kXQmdr1gJ16YUzvKLeBY9f0QPW-1YLOT1fi8qQmGME9Frhqxnf3BLJS5hBskuZUBiUuHGq6-RIWVzqA\",\"ArchiveDescription\":\"LeraPhone1/20150919_094208.jpg\",\"CreationDate\":\"2016-04-19T18:08:43Z\",\"Size\":1996375,\"SHA256TreeHash\":\"f84db6327cd3166abeb24ce59bf0e0ad7b2e8a0725aaea796e3e8e75c621826e\"},{\"ArchiveId\":\"rwAyJk1G6WwIhsEIiRARN621a-xFPbNHMGBqe4mx5DkwHwbYBNYk2EUIVVS8dT4RycuP3HnQxuvu2VIl5w2N_4kBP_1u7pD0G5bSkB-MtFUWAuq2le1Qv5Trmn7JoDo8UMyXb1G0wA\",\"ArchiveDescription\":\"LeraPhone1/20150919_094209.jpg\",\"CreationDate\":\"2016-04-19T18:08:43Z\",\"Size\":1988562,\"SHA256TreeHash\":\"a35cc468e19bbd7be2cf234775fdd0327a91e09b42a42afa018456c72df19821\"},{\"ArchiveId\":\"VDfog-KdkGgtUh1C732m6jvlXfKX0w57GY4C2Iv30yRbxRyLLeHv7xbHnPjcPIj9ZQnXte0sRg3Kt5eiM33cEWhIS47mSxQIr98geVb0rlpVh3zV8xMkUtd397JJo2ipEbDG1MacXQ\",\"ArchiveDescription\":\"LeraPhone1/20150922_180923.jpg\",\"CreationDate\":\"2016-04-19T18:08:46Z\",\"Size\":1824305,\"SHA256TreeHash\":\"01a77d8458f09f0b2a9c90c79a574c2b536762c55f6931a705d52720564029b3\"},{\"ArchiveId\":\"hjMQQ0cs6klUpZM99G0syZEHkhAZLTP3h_HZlbqjn1XMhPdg1k_gSH_LCr9tQI6NZ41GSTRghJ7pyKKyxwhvSHyXMKERVX9rJm9Uj-wxcosv-RCcs45lIzsx_1aQmLDdg9UONUIvUw\",\"ArchiveDescription\":\"LeraPhone1/20150923_161701.jpg\",\"CreationDate\":\"2016-04-19T18:08:46Z\",\"Size\":1465416,\"SHA256TreeHash\":\"1ebd70ab54299225c01d7398b0eaa3c758ef39d62346dbbfb5e97fe2254db7ce\"},{\"ArchiveId\":\"5P8I_QhhE00gYZiy0C8Uttl3a-Sviim19awXcZm7ESihah66pXBiUryK0VDH_u9WQL523D0XkKSEA0e9Y9OS5sHBbU7VsKYQb2oaf5Ac0kaC5LBExLeRJ22_RpLJcLkjjsuqPzw4rw\",\"ArchiveDescription\":\"LeraPhone1/20150923_161720.jpg\",\"CreationDate\":\"2016-04-19T18:08:47Z\",\"Size\":1423928,\"SHA256TreeHash\":\"4b5b70881c9f628399449a60a08b49227da6b32ceb59257bb107c4b118312857\"},{\"ArchiveId\":\"-2dmlrhXfN9N8RWv44AEWyqufexIrhlvsfHhsLH3YPWKawZLQ1TRGWamdPcCuxbm2R4vXR5GieL30K7imzz3TYTbb39gei6QJLaSf1wT5FaREV4nPx3R6uQGvHsv2-ohrZ09ANoDNQ\",\"ArchiveDescription\":\"LeraPhone1/20150924_125523.jpg\",\"CreationDate\":\"2016-04-19T18:08:49Z\",\"Size\":2111490,\"SHA256TreeHash\":\"007f4b5b6eb96dc49319f61126f7f7328ff9882754d4e6b7a08d2ecbe43542e2\"},{\"ArchiveId\":\"ctVitwIWa-0yj8OW8HVzTMd4L4Scs0LXpOegungbpbiPd92OKVzU7BAdEzbtPbIIwfwzocYA4l6Wn7Y9ghR2vzaCIUV-Az6fCSZdXosRLJi4V9QRz0yU03E9KKHY7A-ymG0Rz7b55w\",\"ArchiveDescription\":\"LeraPhone1/20150924_125529.jpg\",\"CreationDate\":\"2016-04-19T18:08:49Z\",\"Size\":2175031,\"SHA256TreeHash\":\"2a43964223ca9aec69d7ad701c90051bec317785174548c0be8cdca04f50fe7c\"},{\"ArchiveId\":\"sFJtJE-TzmW9DofX3rgMDTIZ1zc8AZFzNVL-Y8zlUJRB1DwJqtXFs2-p1xYN_ZtS_6riOULeVvf6cmNrutw7grQtFIj3VOkR1Im_PG905T-ExkvgIMYb_56ULhOnRc6clndzytMXFw\",\"ArchiveDescription\":\"LeraPhone1/20150924_125538.jpg\",\"CreationDate\":\"2016-04-19T18:08:50Z\",\"Size\":2133423,\"SHA256TreeHash\":\"1d1e5b8a4dcd800d4fd1aa5fa23b899bd663194f23cbe77555fc8d62ca48bf8f\"},{\"ArchiveId\":\"GtkKg1HtlAZ0rCepfXjcSoDO6qk5G4Nm2huAugTwafUsOzFI-slfpjt9Q_tQ2GbPxtBXNrI_UAruT40xUQ-lDvGC5_KfILGgs6fPKdxgxRASt-_Iuy0bWxRkv4eTL3JT6MgIOPXFgw\",\"ArchiveDescription\":\"LeraPhone1/20150929_203609.jpg\",\"CreationDate\":\"2016-04-19T18:08:51Z\",\"Size\":285214,\"SHA256TreeHash\":\"95adc209b8bcb5ea72b2f0b05d50dc2867a47f7d66d9371c32958bda5f1eaa14\"},{\"ArchiveId\":\"SKYwv88xZiDXBIj7g8BnqRyivVcZWfNYD_z7iioXVHY6FySA4-RvSKVvp4xdn4fzyWEoYtG4HQVggdXKN6jx3CmwDMvA_MSQ2MNUhNXyfROD7shf27GK9-ObKgW8DnudP1C7o3z4cw\",\"ArchiveDescription\":\"LeraPhone1/20150929_212100.jpg\",\"CreationDate\":\"2016-04-19T18:08:52Z\",\"Size\":264103,\"SHA256TreeHash\":\"7e2599bf9443735e5bae9ad116d2994b4cd06a7dba915f2647eda195afdd293f\"},{\"ArchiveId\":\"H-VLWbCxedVtl1H0E6sAdHhm0gEB6qqlLHx2mcZuSciSoeNNUfngVoevW44w0j5Rj4vlnxPox2LNETn0bY_WPgBW7g1iK76Ak0SC9980QL0kdxzISg0bqEpbEfpOHqfopVnVL3NOMg\",\"ArchiveDescription\":\"LeraPhone1/20150929_212148(0).jpg\",\"CreationDate\":\"2016-04-19T18:08:53Z\",\"Size\":287808,\"SHA256TreeHash\":\"2fe7f7f776e1042fad5c1f7bbb090dd01f0a1a0a748f945716f2b683df5f3631\"},{\"ArchiveId\":\"ITUcgzSWUqw2UDxwYVFRxBTQmvXTlvkzRXZiUBc5HTKxWJdqtEdjzAl6dOCgJt0d__R6ecoNleTOFnzanX3SGE5JgdEXbQGme-CY936p09HproupzzTlBcg2Z6jG5Nf4DzEtDMPDFQ\",\"ArchiveDescription\":\"LeraPhone1/20150929_212144(2).jpg\",\"CreationDate\":\"2016-04-19T18:08:53Z\",\"Size\":286934,\"SHA256TreeHash\":\"6146d903aaf6f9017807c6381e86944552219e5e43db7cb246162688ec5b971e\"},{\"ArchiveId\":\"P1CEKPgnW7ro4QS4bLzMA71bAFpN9Rp11s63OOU8VQYGVdh4DU_Pgr5Sm6jcT09ipMlv_ivG3oW5d5tOtTcBx_bwmKQ6S2a7knRr5qM5m4IvNImavLb6LU5SnD28tJWXz0hnNbcujw\",\"ArchiveDescription\":\"LeraPhone1/20150929_212148.jpg\",\"CreationDate\":\"2016-04-19T18:08:53Z\",\"Size\":276887,\"SHA256TreeHash\":\"0953afdbb6ecd3958dd4b044cd75eac4cf4612fc76c747722ef60870d850d0dd\"},{\"ArchiveId\":\"ngodUIiwGbk0M16jkDouRbhOdUY7-olo9fgGxZKlUAvxVFqcUO6dyq6P1iqMGGqc0W7ukMT4y3GBIDZZp04z0qAWWXnR4ycUMFiYOheFltLPqweW5mNA5ZZYRqWdKisaSQK7waINdQ\",\"ArchiveDescription\":\"LeraPhone1/20150929_212119.jpg\",\"CreationDate\":\"2016-04-19T18:08:53Z\",\"Size\":280619,\"SHA256TreeHash\":\"4a0cbecd8172bbfce8e34dd091d0f1aca06edf8a5768dcb8d3910a23b835ad75\"},{\"ArchiveId\":\"4HAZDrjtBO21bSKkdkRjOqaiRuEFaoKKKy0rtg-rvxb2kn6xavCX16Dg_cm_bsR4fVHLFuYdgGmZVV9jAhLLIbl6k5sOizpMEGsSzHGQAHSTLhGP7XNpKoAC3xklUdw3ufaZZpbxPg\",\"ArchiveDescription\":\"LeraPhone1/20151005_155910.jpg\",\"CreationDate\":\"2016-04-19T18:08:55Z\",\"Size\":2781024,\"SHA256TreeHash\":\"b92ee5ddf0b057a50f2d5a68247bba6baabfb21438c403c9de8cd7a4940b6776\"},{\"ArchiveId\":\"RLrxrkpUo6ZH_IAAFjhzf1gLCWcKfRgr_rzP-7pUU031jwb9Ac2oRYP6vjx1M6PqsbNMqqV_ylyp5xTyen2TtamAPi8D_CkzxTHcAXcWfmJn1zKhNwmQbAx0r6cpq5f0f0LX3DKKTA\",\"ArchiveDescription\":\"LeraPhone1/20151005_155926.jpg\",\"CreationDate\":\"2016-04-19T18:08:55Z\",\"Size\":2390956,\"SHA256TreeHash\":\"6ebe64bb142508259f52b35b89e734f31721b5cb4b58282a0cc9b...T19:40:05Z\",\"Size\":3339570,\"SHA256TreeHash\":\"4f302f748affe3f58c201fdc26aabf98f22e1a74851e3649496a7c742408a256\"},{\"ArchiveId\":\"BOCM5YvkP7x9zEvYyDzst2mMEAy8EI0YiqxfCLRJUpCfndXTTiyF6KPyiZbN7ZeVp22Ile-3sOyMi7kvMHgmBWhJfHhC_CKstV_u6kkQmE9YcdL4cA4hm3Z_xvEkyPZ0GJSEfeJClQ\",\"ArchiveDescription\":\"LeraPhone2/20150812_112011.jpg\",\"CreationDate\":\"2016-04-19T19:40:13Z\",\"Size\":3384785,\"SHA256TreeHash\":\"557676ba2fae41b9e8289295e0e5bf2dc5fc6cffe9578d1320f0d16c8a833eb4\"},{\"ArchiveId\":\"c6o44zrfi7Ph-cjTo93qayhSzwSFLguQclQ0Lr6tJ1AgXYDuJmSzA57Wcx4mlw-AmOYQtNXFKWTYORPlvD0gscJOtl_GYnitvTCzGQRIp9VIT67GpzEjCuFZ7HuDpaCHG_gEdi9pWA\",\"ArchiveDescription\":\"LeraPhone2/20150812_112012.jpg\",\"CreationDate\":\"2016-04-19T19:40:16Z\",\"Size\":3358136,\"SHA256TreeHash\":\"46ea9f8a726282a378bcf259b8a6d50732c82388ab3a1f6cd7a1d6c8a9ddb261\"},{\"ArchiveId\":\"xAghYU9-jIhuDT4FAgNF2aCF449n9l5lX-_ZuPdfN7GgiWbQEdW67RRFgn8T04xVMt1P33n7QGsj7ScAAFlst6-4ZjtXcLGwM7vJZbtdyhR8kMoWBe-lerJwus0-_EzHXdovYlIEYQ\",\"ArchiveDescription\":\"LeraPhone2/20150812_114453.jpg\",\"CreationDate\":\"2016-04-19T19:40:21Z\",\"Size\":2853387,\"SHA256TreeHash\":\"15266bcf518a6dce800fa796d92a2961d4884e1ca3f800c91f22395f9c470389\"},{\"ArchiveId\":\"4z9RSDGVKoh88Qrx4gIjj6OVMAwnVHY-5Lf86T2DXO2xiS-p1wXTUN0ltLGaoxiSNRr85t67dm2XBaitbesnYeAq3UmgE_VgYneAbDZVfYUOz3_CGvRmTICMuCNc_dCPg-9ukOsfDw\",\"ArchiveDescription\":\"LeraPhone2/20150812_112013.mp4\",\"CreationDate\":\"2016-04-19T19:40:23Z\",\"Size\":80636368,\"SHA256TreeHash\":\"d9d4dd1428ba23934fe549797fdb4ad467447d5e77c55d35e1339a5628deb292\"},{\"ArchiveId\":\"IcJLlF0XAtQtgXCOeobuIUw8tTEYqVG1bKM_cFEsVKD3sUIi6fsUo8dDk5Dj3YqPvgMj6F67fqPkhd7bTLqry8wFkLy6XYsVCzR5z5LA_K_lO-QfbG39elDWf-pUs5FRzHX_QwlDwQ\",\"ArchiveDescription\":\"LeraPhone2/20150812_114454.jpg\",\"CreationDate\":\"2016-04-19T19:40:24Z\",\"Size\":2810812,\"SHA256TreeHash\":\"439b111418b67336f274ade07e1240bfb6ce6b952c669cf15835f221e9be4e72\"},{\"ArchiveId\":\"MvBzzcuMgq0q3a_UE_cOfTH08r0USNC62zOuKE36fVaCJIjkoU8rMKvyw1UI-oJkY7e3JMFP3TD_YvD_vRDnNzawtVKdNTSbb4A9_sYnnuBO9DvgLbG2i9PTZHbuI_9Wi2LeB1I3vQ\",\"ArchiveDescription\":\"LeraPhone2/20150812_114456.jpg\",\"CreationDate\":\"2016-04-19T19:40:28Z\",\"Size\":2832753,\"SHA256TreeHash\":\"0fb2a1e7186296d5269250affd136e2cb7e863ea607d76932dbd6c429c10d53f\"},{\"ArchiveId\":\"taEhPZgrU81fE1mgmeJ1CLT5AKFvLrqMNMjGckXpLITYcvhK84ud_0nyTRfwyHyP0ZxqrQN6hxSKMiQtv82OyAUkaxhwfWu0dxW9c9WoZWW84IkAxNqi_uZmC1CMBGVnqL3JpWll6Q\",\"ArchiveDescription\":\"LeraPhone2/20150812_114502.jpg\",\"CreationDate\":\"2016-04-19T19:40:29Z\",\"Size\":2716843,\"SHA256TreeHash\":\"e790ccb42ba74732451d8ba34a1802d4051eb8b94a6adec0df5da2b5832ac990\"},{\"ArchiveId\":\"oMaV5PIcGpWR20qRGkCD9VLryW_inYoSmuNlabrVq5wiPSeaTvzWXIc29jjUWi0WKRUeEwmEvRdIL8gP05QVtNRpwGHhIEtMSnD757yF-bNBK2y4TaRX62rsjtsUYsqt-rRUZfgfWg\",\"ArchiveDescription\":\"LeraPhone2/20150812_114503.jpg\",\"CreationDate\":\"2016-04-19T19:40:30Z\",\"Size\":2581218,\"SHA256TreeHash\":\"c48698c675b57b8331a713265ab3c5348848b54cb4148b4a79842ca31dbb389c\"},{\"ArchiveId\":\"w4B3w3mu5rfOrlW4KfESMwRUZet7Gknb3RY9XY2jWKZaJAyVo4pwOTjZLfMW_ZK83idARKFS-lOpeFg489TQHsFLieID1KDSQ4HMwGiPfIhoEFyLEdf8gVi9x7vvxuQpv2HXANZ2bw\",\"ArchiveDescription\":\"LeraPhone2/20150812_114506.jpg\",\"CreationDate\":\"2016-04-19T19:40:35Z\",\"Size\":2521405,\"SHA256TreeHash\":\"83378f030b7c8fce2f6dc4251d5c7008c838c00d4b76b73a6f1b24f55b237efd\"},{\"ArchiveId\":\"e_JJ-vTD_qcS4Ntphr6eoUVzwKC184eGsvzJ_D84cnVpzUz0x1KNDJwcN0sRSPTIrxBMT-ATIdmV_UiTCM_xyyIEaIHBuhIlbeiDEN-foi521H71w83KOmLwRfunIiCMAawBibDFwQ\",\"ArchiveDescription\":\"LeraPhone2/20150812_114511.jpg\",\"CreationDate\":\"2016-04-19T19:40:42Z\",\"Size\":2633203,\"SHA256TreeHash\":\"bc6d4236174e12912c40ee85675a7b399d377e1e277d0386668790bf36a5c0df\"},{\"ArchiveId\":\"7744vSmuV75MW0XNeUqIxdgi0pBH-M20b_cjHSre4E9MZZIrHr6T_S2hw0l4SEIAmhfhNN0b7yTP8zzqieTS9PBYGMPjERKC-85lAwbEOQ7Y3KXyDHLhBJ8zGyEA1pyL_bf6SxwTrw\",\"ArchiveDescription\":\"LeraPhone2/20150812_114512.jpg\",\"CreationDate\":\"2016-04-19T19:40:43Z\",\"Size\":2705382,\"SHA256TreeHash\":\"ccb75e38adcca00a5b0c5ac4dc3428662fdf0d271e6893100b6815b3f130276a\"},{\"ArchiveId\":\"N6jm7ftiUEphTo0-4i5SwmUACeN4PezhDdni63yHUrZcsmI6Zh_Mx1l2Fi1CZLtc3krAbEl0w5GMLMw-k3hoYe0bv_RFhjUgELrPbJWkCR0ulsine3iIASjIzjpBALIU4QN4qHe-1A\",\"ArchiveDescription\":\"LeraPhone2/20150812_114515.jpg\",\"CreationDate\":\"2016-04-19T19:40:43Z\",\"Size\":2752878,\"SHA256TreeHash\":\"12cd8fe41d486cb127936ea95c024ccc8f3e488bd144ce53ae5db9d42c8a03b3\"},{\"ArchiveId\":\"ftlvThxT11fmFYQ7qBckpPPcBVThBgsOVy8JPboVyGtGAEIt7Fu162aP1p6taJPnw0UeyxO1dBjoRzU6cInetkXW8qT9WRhYV3Uavm0_PmarbVkizLUlNR1V5vyKPtiLcyPHw55Z6Q\",\"ArchiveDescription\":\"LeraPhone2/20150812_114519.jpg\",\"CreationDate\":\"2016-04-19T19:40:45Z\",\"Size\":2749497,\"SHA256TreeHash\":\"c94fa4645b7f662c9a13edd10d452bb49ca2917d44b0b4c8f131ad20b55fbc58\"},{\"ArchiveId\":\"qzODCnz3JlDzbDF284x3iFouyUkGG74dAuOMDURJSXs4u1baYl57qtcv99EHUg5yFRqrxRkruFDjPyJEIME7VnsqJOZt1jgysFecUekTMT9Np5dxxFwyBYoXOcvto0uTls1NWmTuHA\",\"ArchiveDescription\":\"LeraPhone2/20150812_114521.jpg\",\"CreationDate\":\"2016-04-19T19:40:48Z\",\"Size\":2732219,\"SHA256TreeHash\":\"91bb1258e1a2fbf47e5cfbd4f925412a47349ee53334cbfa5ef2cbfb7b8c27fb\"},{\"ArchiveId\":\"kGqjl3vn93LByAc2_N4xGdvVY5ixkuYvXIA1J99nDvAimmhPU5ROiW5yGzRmNmfTe5lQ2EvLtIIRxU4a-8_gpuOqWHYY_mJAjgBaGy0WVqpJE7SKr-ajCupZ5QywiGhcMlwmVLSAOg\",\"ArchiveDescription\":\"LeraPhone2/20150812_114522.jpg\",\"CreationDate\":\"2016-04-19T19:40:49Z\",\"Size\":2816523,\"SHA256TreeHash\":\"0c962828fb4851b0a5c07710a315ad841662cfc1e9bb72227cd91402c8a74c50\"},{\"ArchiveId\":\"sHQkUYIAP1xRM3lbxQComdXQ3e8uY0mgqx4TtTA__d6PGG2-fR6QEOlbT_goZDCzyxa5YOPNbztRIGWNp3qp6XQiv65C9tBmGxDvRzFF4h-X0X5DnDxQQIVnPBXlXTakigaOBdWEqg\",\"ArchiveDescription\":\"LeraPhone2/20150812_114523.jpg\",\"CreationDate\":\"2016-04-19T19:40:50Z\",\"Size\":2844522,\"SHA256TreeHash\":\"238924027a9f1bf9a8cba4f94835deedae9b0cd577a2544856e86f845187340a\"},{\"ArchiveId\":\"2uReP95DpiSTfeuqwttKnKAOs9h7NsHSnrF-hDRvdclbdwzJXw5lnuEA4ZfYZaRBe-a4rdU8A3v7Qz2MXwM7aa4ugiSFENNxvf_LrkVB-9DcROLH26h03n83ukke4er8PPqfkOo6bQ\",\"ArchiveDescription\":\"LeraPhone2/20150812_172712.jpg\",\"CreationDate\":\"2016-04-19T19:40:54Z\",\"Size\":1529660,\"SHA256TreeHash\":\"10c78f9ae915354607949417fc4c22546bcb301db097054e20f7429721bbdc10\"},{\"ArchiveId\":\"QYjU0OhPJ5eAFHAClza_tflFcmx2T6XqZQDmjY0XZo9tQc8KMJLZqhcIZEOQIteqS_OGZ6p9aDI2_3elDAfWREYWq7U0GVH2fhO5AkicRBFCIegecQ3AxA0y_EBbHpSv4cpoPbR83A\",\"ArchiveDescription\":\"LeraPhone2/20150812_172712(0).jpg\",\"CreationDate\":\"2016-04-19T19:40:54Z\",\"Size\":1692701,\"SHA256TreeHash\":\"92613f21bcedd8e93ea548991b45230d5e641262004eefcd7f431022a869ed1a\"},{\"ArchiveId\":\"6mnTMhLZj95PxZKFmHj0dWZu-M0_HBCbUNySf6kx6wxAFejFfm_E1MQCqHfxj6d9EOWwlhnxM2NRhAhZY3jP1a2PE8WNt3rVM0VmDWtRmiUfZQ60RWiAQz-SRvLdS9whbQy91gHR6A\",\"ArchiveDescription\":\"LeraPhone2/20150812_172723.jpg\",\"CreationDate\":\"2016-04-19T19:40:57Z\",\"Size\":1813417,\"SHA256TreeHash\":\"0c89b08207d604a26f2e15daf4c6553f27d985d50250d493c518c295ffb7ae7d\"},{\"ArchiveId\":\"rqQHRG7F3I2TTkJXCXxbCaW-yFC4TnEzZA9vv3ymKA-GhDEtSe32tGHfYEOJ11KnVQeSHg2VA2KSLHByzRaS8wcTYGMp7vKUleXaK2G-ExdokhuNg-T304lhx2m83seqdtsqbFCHQA\",\"ArchiveDescription\":\"LeraPhone2/20150812_172714.jpg\",\"CreationDate\":\"2016-04-19T19:40:57Z\",\"Size\":1305395,\"SHA256TreeHash\":\"6fe37ddf98e3285b8dfa068c7931b658d345e1fc7ea5dc9ba463d0cae7c956ed\"},{\"ArchiveId\":\"wnbqcE0PI3jymA-LJ4PRY40CKQ1YVnxyoHBN41TpR7brJ_AlE_ENNszuE4TYCSdonWRJstH2awRGYPM98Y6sddtrbQTPGdRT4OZJ_zd5JcnatmqPDU8y5Xs8ViJt4x0M3XpcvnV08g\",\"ArchiveDescription\":\"LeraPhone2/20150812_172722.jpg\",\"CreationDate\":\"2016-04-19T19:40:57Z\",\"Size\":1747571,\"SHA256TreeHash\":\"c70ef8c08dec97cf2759cc5fcf573a34ccb6b9252cff4bc7bb0a6d9dce45bfa5\"},{\"ArchiveId\":\"JipKnPwIYaB79WHJCYBbCswAjU3c0gdukT_FS7jEmKiYDdpafgolwc1vdR8peP-FUAS3fTDQ-8EeRSAeE_KKT_oloiFq4Z1R15KX89J-AFR4CeKbeQ9wl860vMFYLVeaGB93E5wqHA\",\"ArchiveDescription\":\"LeraPhone2/20150812_172724.jpg\",\"CreationDate\":\"2016-04-19T19:40:59Z\",\"Size\":1801445,\"SHA256TreeHash\":\"29ef0b073407cd21aae02ae0d8aaa3453a017bddba53225ad3939c5cccad7ca0\"},{\"ArchiveId\":\"MPx3dpsgpKM0rxQtarW8Gyx5tEAwBw6W7oC1lbodEez2DI_zK1w3YmHoDQQbSUEdiTQCNCBSMWBKbtNc4UbOUtauHFF-iSv2py0PJFj4PTrGYhz7TLXt4rl8apIBSQK7jex4pC0oeQ\",\"ArchiveDescription\":\"LeraPhone2/20150812_114528.mp4\",\"CreationDate\":\"2016-04-19T19:40:59Z\",\"Size\":113786089,\"SHA256TreeHash\":\"bc0040e6b5e36728ff32e3dd4609cd34479e9646a906c053e06751bedf7cc634\"},{\"ArchiveId\":\"QYQJAGsuBfk99PKenY1xId0EqwV7iTpJsfOInrEDSOTs0El9aTr5h2t-YJevcS14Q6i598CXsxGLh91VP3Be6SgpmlMmYvkOzFeMC3qboP5l-fpbM95g_fWvA6OoqB83c2-wSntIBg\",\"ArchiveDescription\":\"LeraPhone2/20150812_172728(0).jpg\",\"CreationDate\":\"2016-04-19T19:41:00Z\",\"Size\":1567533,\"SHA256TreeHash\":\"3a1d7b156501b9bbe899ea7a8105fd16e2207b0842d768a36b1445b7e115025f\"},{\"ArchiveId\":\"60jL7cqjWfWEihJoUO6UCJ-9Fwsqt-5QOwKub3odtORvenLqlHV1u1mdwSkRwDgnhD0WfH-ZUvt2SGbZcMz7HnBk8TvQDP48xpbu1Cb8rqj5Nm-wwmZYmR_4X6I0RIG2BogfSaspVw\",\"ArchiveDescription\":\"LeraPhone2/20150812_172728.jpg\",\"CreationDate\":\"2016-04-19T19:41:01Z\",\"Size\":1561215,\"SHA256TreeHash\":\"3a583b92ee60f24503a6ee12e5edcb9f2b999447731964064453cca91f6db37e\"},{\"ArchiveId\":\"dkiPUSsl5fSAwsPmzh3STWeRNdhvtzAbeFcS3O45kUPltWe0Mb-BzK47PXFnUsbjEIc1_oNVnBhCdRT6q1j96anMpnEFoY7YeoABWVrSvw4mEof7lsjIE_3QbXQ-14Qc31v7MWcQhA\",\"ArchiveDescription\":\"LeraPhone2/20150812_172744.jpg\",\"CreationDate\":\"2016-04-19T19:41:02Z\",\"Size\":1421740,\"SHA256TreeHash\":\"762d79102b0c31d2c4ed72e39765dd5d01774689bd5463efb801679a6d156b43\"},{\"ArchiveId\":\"lVY9E8DXmhbnjDjwVWZ9CVy-R2GtPaY-L-w6ovSMBnRUnzCpwLnEmFlUumYFeAa8SZ2MU4DHDCDXt5p7dx_tT073vzRooV0-KA_XqOj6uMAlp74-1YjuTnBUtDEFQr9lmd-svrXOYg\",\"ArchiveDescription\":\"LeraPhone2/20150815_135425.jpg\",\"CreationDate\":\"2016-04-19T19:41:03Z\",\"Size\":1497191,\"SHA256TreeHash\":\"35bee9eaf9a3ae452c72f6fac7d52a274085d975b96a0f6ffac047e3156d50a7\"},{\"ArchiveId\":\"DnTovSBf8jImyEt1vipAxj-EIp-znAJcE_KWdz12ncxEUWm6u6DNtk-0dhiIRqxkdUxT6FM7Ba_HnXDiJo9evjuzyOJOSrZYwo3ZdkRKAxgHxpp_JO1ayLlwOWIF7BYrESC3YnkoeA\",\"ArchiveDescription\":\"LeraPhone2/20150815_135431.jpg\",\"CreationDate\":\"2016-04-19T19:41:04Z\",\"Size\":1655917,\"SHA256TreeHash\":\"f4d242afce9d9477c0aef2a2a23037a95d14536b089b5802e81db845186b42e0\"},{\"ArchiveId\":\"nRlAhMSHtTgKFK95qLNuqhcqeGEA_mhvGBO-afTYsEz5CaxARS98QoQlqJFVzKKtfJMPSxCRFRqZ0OwbSTASVq8DzlwDfRWKo7l4j6l4IfC9n9R-VUn2UWIIVFBzmSxm-xDDTDGdvQ\",\"ArchiveDescription\":\"LeraPhone2/20150815_135433.jpg\",\"CreationDate\":\"2016-04-19T19:41:04Z\",\"Size\":1687070,\"SHA256TreeHash\":\"8695b1fb63eba89d44de1969b86c1fdf564ebe19c5f810da779f681b4739bc86\"},{\"ArchiveId\":\"AJDz71Z-FIrKxbgD6ttngp0SF4pjS2DCmvX0-vkC5otV16Cx25xJzUwM8V2V47JBJhvxyNzEbzgae03DtXh_QZjcMw5AGBZfaM3T-XBN7wk70DOpQ7PEYUmf4cph7oM8Jg8M6xDW8Q\",\"ArchiveDescription\":\"LeraPhone2/20150815_210502.jpg\",\"CreationDate\":\"2016-04-19T19:41:06Z\",\"Size\":1175416,\"SHA256TreeHash\":\"0254ce7c1f66d6e95fd87f3cdcd6aaf6e140b9a8ab0470ea24246263e55deebb\"},{\"ArchiveId\":\"UTV5Vbb0DZS1UxYqypfepzDNrXvbfPWEJ1GLPGA8-jlD-2C_NZVNbS7jHGjhftXKmLVrXH4Bc8PHHDNuC0rHyvgEBQdizcINqjo7juJREAQra6p5PEJm4v3c8A8kESw9HCiJ2flsOA\",\"ArchiveDescription\":\"LeraPhone2/20150815_210535.jpg\",\"CreationDate\":\"2016-04-19T19:41:07Z\",\"Size\":162877,\"SHA256TreeHash\":\"1285082cbd065cc5d5efdf47915cff7c0a1772af2d77b3358a0d6c48d42355ee\"},{\"ArchiveId\":\"seyIDkAIA74ziVUDtsC7v2Xae-XhE7Kis6F3X-zDIAXhi2CeJrpUPsWVd-eKBELdsuj7hurBfO0nNkK5055EAAoBFu41WMoT4jwsviNlh2QD1ZPuledmId-JnLKYCAxYF_Avqzt8Xw\",\"ArchiveDescription\":\"LeraPhone2/20150815_210534.jpg\",\"CreationDate\":\"2016-04-19T19:41:07Z\",\"Size\":147091,\"SHA256TreeHash\":\"db9cf0cf25d698b749f5a5bae9e6f8ffa1ac9d16d36dbddd55cfdaa9f2b839c7\"},{\"ArchiveId\":\"LmiYTZoAVqumR8WFL0PnqY2fju-2qzywTsqz5Hu7mDUacZOXqqGT5SVJVOPDFMK-2QYO9iZyJFfaobm5IVtleRmuJ9GuXjP2nEjuy8uLqdXBhA53-YU-zbh-axDS3D14iKUQZxxOLQ\",\"ArchiveDescription\":\"LeraPhone2/20150816_180322.jpg\",\"CreationDate\":\"2016-04-19T19:41:08Z\",\"Size\":2507509,\"SHA256TreeHash\":\"6682ecc25b558411a69e604477e23d7e32718dfc5d5ee8057c9aaa7d72374a09\"},{\"ArchiveId\":\"N4QnIgc2zORe8kf5Sc_QZPozteJWESaT33-qCNUx5jiABCaSx2mH-GPgFd7xo1_X815T5OekWyBPNvRYOQU8O_W8FrIuem8qEp1IQ9rYPyPpjzzRPXitpuN6LiVKX9YB943rRQC0IQ\",\"ArchiveDescription\":\"LeraPhone2/20150816_180356.jpg\",\"CreationDate\":\"2016-04-19T19:41:08Z\",\"Size\":2566905,\"SHA256TreeHash\":\"cc42ee2b36b8c62cc945f8727079f0062116bac0562b6723c49d806842e7ec50\"},{\"ArchiveId\":\"Wp0TDdYcya5ClMDo4k0PVqAt59onbBYgwBdNUp5PUTA3a-kUD27QFmLO1ukxkrFdXt3S1ojjxnuGUGBaWjOYm_aFJdgYfEAGp1bZwTjHjqjUUP4Ml4-RhWntjuZS2XF5XbJk9jVA0A\",\"ArchiveDescription\":\"LeraPhone2/20150816_180321.jpg\",\"CreationDate\":\"2016-04-19T19:41:08Z\",\"Size\":2647601,\"SHA256TreeHash\":\"f3a80facc9fd1c5f65ad52b4bea873cbc5b3c16c9a4005cee5705d9dd8635a2b\"},{\"ArchiveId\":\"1ouIf9V5O2aUD0lpLAlW2xPvmcM9OwS2ZkLc4yv-ECT3YqDq_O5NnppICwiQhOIevlO2guoi1ilP33ievzsavX1zMpisnnmvyjKPDnmwr-Y4U9Z8_uz1KGJwprP2zVqvmpK5hxepaQ\",\"ArchiveDescription\":\"LeraPhone2/20150816_180357.jpg\",\"CreationDate\":\"2016-04-19T19:41:09Z\",\"Size\":2372439,\"SHA256TreeHash\":\"7d99ef5816c87f3ea72f9a1f9e6a22018b3573f5246cd82ea2fb3cbf6dcbc053\"},{\"ArchiveId\":\"b92okEEk4IFxaaHiAiABr-Vmcil97_PT8u3JbPR-CleQTIDIt33u0JxyK9wvxhmDGENj5IFaI7JpNEzAz64u4v3AUOyYXe3UhUCvzXcGAYIwjzcrKW-nXvjta0-omy8_jTlY9KqGTg\",\"ArchiveDescription\":\"LeraPhone2/20150816_180359.jpg\",\"CreationDate\":\"2016-04-19T19:41:13Z\",\"Size\":2621891,\"SHA256TreeHash\":\"43bc99ca65960b9912fd4f5236f6a5cd59d80d241a518409a904dbcebdb28bfd\"},{\"ArchiveId\":\"NRIBnGGkeLKbf9mlqKWjena9uQTg0zbJ28JHSoa396FaX2q8q7zM_fUqDN15QjZXDUG_PZV7SetzAUnC0NI1E82ACJLT3Of51alXfFLTtghCi4vPhOoORnJu2R97Sv2dHVuLZLKHXg\",\"ArchiveDescription\":\"LeraPhone2/20150816_180421.jpg\",\"CreationDate\":\"2016-04-19T19:41:14Z\",\"Size\":2251425,\"SHA256TreeHash\":\"1d69f837a8d7229a0b40063b786119d30d899cd7d118e6d02dae9ee334ef387a\"},{\"ArchiveId\":\"9XcuSyOq0q2yDl7PXwi9rLVcz8tteo5g9YT0F_7opLqFuAkBFDHUh615Rnk70nJ1Jy9nFJe3eLn53QyePuBOoMTy9UW2bzdg1TLvhpWlxh6h6QJ5KTgLTcnUvyuifn18Idk-bU7xGg\",\"ArchiveDescription\":\"LeraPhone2/20150816_180442.jpg\",\"CreationDate\":\"2016-04-19T19:41:15Z\",\"Size\":2567016,\"SHA256TreeHash\":\"a131f79cfdf97065365e6ce126f838bd7afc82331b43295161c8a0337e6ef417\"},{\"ArchiveId\":\"fx0EMcPI8HlOI_6cVvafoh1fWhZkfL7dmnA-Ly-zpTarCBhG3hC8VBeNnxrFEE4_ACJwTeCzSCPyW2C_Q-c4uI4xXl5ocBjnF5xSABMti9Ky12gfVrYnm_VArjkX4l27ZgsHaiO1MQ\",\"ArchiveDescription\":\"LeraPhone2/20150816_180523.jpg\",\"CreationDate\":\"2016-04-19T19:41:16Z\",\"Size\":2426040,\"SHA256TreeHash\":\"c20b28c629b713256985124721442e5725ee91c56c3d57ae18f8773a42547a34\"},{\"ArchiveId\":\"6-rYcBW1zTw82e0-NwzjnukOco9r94vv6B5Wp0WpKjFm7lUktVuNtkUT76PKyCXpNgteCVQVuIr28N4tnS7dsm0IilD1IL2YNqs_b8Stt481SHVgGKTw0Prt0MbCX6SXNbptWMtGYg\",\"ArchiveDescription\":\"LeraPhone2/20150816_180525.jpg\",\"CreationDate\":\"2016-04-19T19:41:17Z\",\"Size\":2764734,\"SHA256TreeHash\":\"bc631550e966b61942c2046475d7fc06408eb8a3ebe100302b4e754391a89524\"},{\"ArchiveId\":\"yNtNfH4u0PYuAIro6lPUmPYapmzjYQ0j6bZ6gUP_k6YbmN5A5Ts1rir8VDIKmYCwcLRdGNPxiIiAXM_Hw_L_MRiSbrrLhRkAA3uT_sbDJ-l91t356m1cyx6APyjREpKKWsqh326N3g\",\"ArchiveDescription\":\"LeraPhone2/20150816_180526.jpg\",\"CreationDate\":\"2016-04-19T19:41:18Z\",\"Size\":2563086,\"SHA256TreeHash\":\"292d2d51a6c8a046f098f2ddcace5b276855a34f77597d70edb9f85709f0c96a\"},{\"ArchiveId\":\"bbLIGzlcqFUeOicE_-OD7NFz6IVJltPTRr0Pf0RMODjraXZhQCMInchDzwjIJ0KINOV_TPOsRr2t7Z981Av_SyRgLg8Ikwb7_TlZA2wvyY0PClC9GPYaSBk7cn7ZSLx6yMwXfUbAAA\",\"ArchiveDescription\":\"LeraPhone2/20150821_174431.jpg\",\"CreationDate\":\"2016-04-19T19:41:19Z\",\"Size\":1964122,\"SHA256TreeHash\":\"f16ea87fe76d231ef3effc6165f127f67f7dcf4028b7408b6289f57bd00d9c23\"},{\"ArchiveId\":\"8JD6E5SfPdjBkBjX8QBIRXHyaVAG-hG6_8y2SaxAzHIzpC99jq1VZxFueZG9FsTLdIX-ReOmIknzSOkU-F-KbGUMff3SDEgHPEGdYl8glfJmxPAUrTsJLAjqsshVNz-xQARCjXeqhw\",\"ArchiveDescription\":\"LeraPhone2/20150821_183019.jpg\",\"CreationDate\":\"2016-04-19T19:41:20Z\",\"Size\":288107,\"SHA256TreeHash\":\"f68c91dd8b56b94006c9a7c8dae6e2f47b521bf69c224fd6911502b6869607fa\"},{\"ArchiveId\":\"Kh8lFDc_6aI98KbQ_tG12QKUTTTBXN5RD28a5r9Ac6GjxXuE-ERg0H8IMzwm2XoCKne6sHmnfqrcuFrgvJg77ToGKzOJ39QoWv6a43SdTwtAdOdZ_oQb_mA_xRBwNEQzR2XbhrlTnA\",\"ArchiveDescription\":\"LeraPhone2/20150821_184151.jpg\",\"CreationDate\":\"2016-04-19T19:41:21Z\",\"Size\":2278746,\"SHA256TreeHash\":\"dd2f0126a2ea640ea2170c888c3cb7ad3a4d31a13ab4e0ee852ab0754ca8b1e7\"},{\"ArchiveId\":\"u7VfjCxlmrD-BtsZxksdZ_uopZhN0cKjxly4t1AE6aFzPeNAtzZ5PBqUPHo5TFyfC1SDEGtDyPM0jsIXzaoBxjPl0Z-dsdbHiY3GMz1kkgSTxjTFzCU8GwYAG4ZRjvwyM2aZu_dG-Q\",\"ArchiveDescription\":\"LeraPhone2/20150821_184235.jpg\",\"CreationDate\":\"2016-04-19T19:41:23Z\",\"Size\":1669009,\"SHA256TreeHash\":\"a05f199720059ffebf92f96ebf0d99187982269319ccacb0e97a99f5ccee3d42\"},{\"ArchiveId\":\"VynpQ9gl_6oBq94PL6JADL3mUJ7LOSyUbaeD_WFIMpIXlI2GOgPKrGn75dXVR22Ba8Zh5bkGsJMf6QMPcnIThOfxp6dP0rjNvAL0qwGipDxzuJHd9q_W_7DX-KQXwPsghZOZ4DKiAg\",\"ArchiveDescription\":\"LeraPhone2/20150821_185330.mp4\",\"CreationDate\":\"2016-04-19T19:41:29Z\",\"Size\":81530145,\"SHA256TreeHash\":\"d2063c08bd13ede63b2f98c7b91e36fc0d043e6c2f37e5328dc6f1139a9f4cc8\"}]}"; drive.ReadFromJson(new System.IO.StringReader(json)); var folders = await drive.GetSubfoldersAsync(drive.RootFolder, CancellationToken.None); Assert.AreEqual(2, folders.Count); var mem = new System.IO.MemoryStream(); await drive.SaveAsync(mem); mem.Seek(0, System.IO.SeekOrigin.Begin); var xml = Encoding.UTF8.GetString(mem.GetBuffer()); }
public ActionResult New(NewBlogVM vm) { Blog b = new Blog(); using (var context = new SocialContext()) { b.BlogText = vm.BlogText; b.Title = vm.Title; // calculate SubText int textLength = Math.Min(100, b.BlogText.Length); b.SubText = b.BlogText.Substring(0, textLength); if (textLength != b.BlogText.Length) b.SubText += "..."; b.Author = context.UserProfile.Where(u => u.UserName == User.Identity.Name).FirstOrDefault(); if (b.Author == null) return RedirectToAction("Home", "Index"); b.CreatedDate = DateTime.Now; b.IsOpinion = vm.IsOpinion == "on"; // ThumbImage if (vm.ThumbFile != null) { using (System.IO.MemoryStream ms = new System.IO.MemoryStream()) { vm.ThumbFile.InputStream.CopyTo(ms); byte[] array = ms.GetBuffer(); b.ThumbURL = array; } } // Image if (vm.ImageFile != null) { using (System.IO.MemoryStream ms = new System.IO.MemoryStream()) { vm.ImageFile.InputStream.CopyTo(ms); byte[] array = ms.GetBuffer(); b.ImageURL = array; } } context.BlogPost.Add(b); context.SaveChanges(); return RedirectToAction("Item", "Blog", new { id = b.ID }); } }
public override void ExecuteResult(ControllerContext context) { System.IO.MemoryStream ms = new System.IO.MemoryStream(); Bitmap image = verifyCode.CreateImageCode(Code); image.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg); context.HttpContext.Response.ClearContent(); context.HttpContext.Response.ContentType = "image/Jpeg"; context.HttpContext.Response.BinaryWrite(ms.GetBuffer()); ms.Close(); ms = null; image.Dispose(); image = null; }
// PROCEDIMIENTO PARA GUARDAR DATOS // esto es una funcion una caja que retorna un valor con inputs o sin inputs public static byte[] ConvertirImagenABytes(this Image image) { // nose por que vota error aqui es algo con las imagenes voy a veriguar if (image != null) { using (System.IO.MemoryStream ms = new System.IO.MemoryStream()) { try { image.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg); return(ms.GetBuffer()); } catch (Exception) { } } } return(null); }
private void CreateParameter(IDataContext context, HttpRequest request, string name, string filename, string contentType , System.IO.MemoryStream stream) { if (string.IsNullOrEmpty(filename)) { string value = Encoding.UTF8.GetString(stream.GetBuffer(), 0, (int)stream.Length - 2); context.Add(name, value); } else { PostFile postFile = new PostFile(); stream.Position = 0; stream.SetLength(stream.Length - 2); postFile.Data = stream; postFile.FileName = filename; context.Add(name, postFile); request.Files.Add(postFile); } }
public override Beetle.Express.IData GetMessageData(object message) { Beetle.Express.IData data = null; Type type = message.GetType(); using (System.IO.MemoryStream stream = new System.IO.MemoryStream()) { stream.Write(new byte[4], 0, 4); byte[] typedata = MessageCenter.GetMessageTypeData(type); stream.Write(typedata, 0, typedata.Length); var serializer = SerializationContext.Default.GetSerializer(type); serializer.Pack(stream, message); data = new Data(stream.GetBuffer(), (int)stream.Length); data.Tag = message; BitConverter.GetBytes((int)stream.Length - 4).CopyTo(data.Array, 0); } return(data); }
private byte[] CreateImage(string checkCode) { int iwidth = (int)(checkCode.Length * 14); System.Drawing.Bitmap image = new System.Drawing.Bitmap(iwidth, 20); System.Drawing.Graphics g = Graphics.FromImage(image); System.Drawing.Font f = new System.Drawing.Font("Arial ", 10);//, System.Drawing.FontStyle.Bold); Brush b = new System.Drawing.SolidBrush(Color.Black); Brush r = new System.Drawing.SolidBrush(Color.FromArgb(166, 8, 8)); //g.FillRectangle(new System.Drawing.SolidBrush(Color.Blue),0,0,image.Width, image.Height); // g.Clear(Color.AliceBlue);//背景色 g.Clear(System.Drawing.ColorTranslator.FromHtml("#99C1CB"));//背景色 char[] ch = checkCode.ToCharArray(); for (int i = 0; i < ch.Length; i++) { if (ch[i] >= '0' && ch[i] <= '9') { //数字用红色显示 g.DrawString(ch[i].ToString(), f, r, 3 + (i * 12), 3); } else { //字母用黑色显示 g.DrawString(ch[i].ToString(), f, b, 3 + (i * 12), 3); } } //for循环用来生成一些随机的水平线 // Pen blackPen = new Pen(Color.Black, 0); // Random rand = new Random(); // for (int i=0;i<5;i++) // { // int y = rand.Next(image.Height); // g.DrawLine(blackPen,0,y,image.Width,y); // } System.IO.MemoryStream ms = new System.IO.MemoryStream(); image.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg); byte[] bytes = ms.GetBuffer(); return(bytes); }
private void button1_Click(object sender, EventArgs e) { SqlConnection con = new SqlConnection(Clases.cConexion.GetConexion()); SqlCommand cmd = new SqlCommand(); cmd.CommandText = "Insert into CodigoBarra(Foto) values(@foto)"; cmd.Parameters.Add("@Foto", System.Data.SqlDbType.Image); // Stream usado como buffer System.IO.MemoryStream ms = new System.IO.MemoryStream(); // Se guarda la imagen en el buffer pictureBox1.Image.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg); // Se extraen los bytes del buffer para asignarlos como valor para el // parámetro. cmd.Parameters["@Foto"].Value = ms.GetBuffer(); con.Open(); cmd.Connection = con; cmd.ExecuteNonQuery(); con.Close(); }
private void BotonAceptar_Click(object sender, EventArgs e) { string respuesta = ""; if (NumeroDeDocumento.Text != null && NombreUsuario.Text != null) { usuario.tipoUsuario = ComboTipodeUsuario.Text; usuario.tipoDocumento = TipoDeDocumento.Text; usuario.numeroDocumento = NumeroDeDocumento.Text; usuario.nombre = NombreUsuario.Text; usuario.apellidos = ApellidoUsuario.Text; usuario.genero = GeneroUsuario.Text; usuario.edad = Convert.ToInt32(EdadUsuario.Text); usuario.email = CorreoElectronico.Text; usuario.password = PasswordUsuario.Text; System.IO.MemoryStream ms = new System.IO.MemoryStream(); this.pxFotoPerfil.Image.Save(ms, System.Drawing.Imaging.ImageFormat.Png); byte[] imagen = ms.GetBuffer(); usuario.fotoPerfil = imagen; DialogResult respuestaEliminarUsuario = MessageBox.Show("¿Esta seguro de eliminar este Usuario?", "eliminar libro", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Information); if (respuestaEliminarUsuario == DialogResult.Yes) { respuesta = usuarioService.EliminarUsuario(usuario); if (respuesta.Equals("OK")) { MensajeOk("Se elimino correctamente el usuario: " + usuario.nombre + " " + usuario.apellidos); inabilitarCampos(); LimpiarFotoDePerfil(); } else { MensajeError(respuesta); } } } }
private void appSettings_FormClosed(object sender, FormClosedEventArgs e) { byte[] pic = null; if (pictureBox_bgImage.Image != null) { System.IO.MemoryStream memStream = new System.IO.MemoryStream(); pictureBox_bgImage.Image.Save(memStream, pictureBox_bgImage.Image.RawFormat); pic = memStream.GetBuffer(); } Connection.cmd.Parameters.Clear(); Connection.cmd.Parameters.AddWithValue("@photo", pic == null ? (object)System.DBNull.Value : pic).SqlDbType = SqlDbType.Image; Connection.sendQuery("UPDATE appSettings SET BackgroundImage = @photo, BackgroundColorR = " + panel_backgroundColor.BackColor.R + ", BackgroundColorG = " + panel_backgroundColor.BackColor.G + ", BackgroundColorB = " + panel_backgroundColor.BackColor.B + ", AccountBackgroundColorR = " + panel_bgAccountColor.BackColor.R + ", AccountBackgroundColorG = " + panel_bgAccountColor.BackColor.G + ", AccountBackgroundColorB = " + panel_bgAccountColor.BackColor.B + ", ContactBackgrounColorR = " + panel_bgContactColor.BackColor.R + ", ContactBackgrounColorG = " + panel_bgContactColor.BackColor.G + ", ContactBackgrounColorB = " + panel_bgContactColor.BackColor.B + ", AccountTextColorR = " + panel_textAccountColor.BackColor.R + ", AccountTextColorG = " + panel_textAccountColor.BackColor.G + ", AccountTextColorB = " + panel_textAccountColor.BackColor.B + ", ContactTextColorR = " + panel_textContactColor.BackColor.R + ", ContactTextColorG = " + panel_textContactColor.BackColor.G + ", ContactTextColorB = " + panel_textContactColor.BackColor.B + " WHERE AccountID = " + Account.Accid + ";"); Connection.closeCon(); settings settForm = new settings(new whatsapp()); settForm.ShowDialog(); }
/// <summary> /// Sends message to all identified clients who are interested /// </summary> public void SendToAllSubscribed <T>(T msg, EMsgRecipCateg msgCategoryMask) where T : Message { var ms = new System.IO.MemoryStream(); _msgCodec.ConstructProtoMessage(ms, msg); if (!msg.IsFrequent) { log.Debug($"[master] => [*]: {msg}"); } foreach (var s in _identifiedClients.Values) { if (s.WantsReceiveMessage(msgCategoryMask)) { s.SendAsync(ms.GetBuffer(), 0, ms.Position); } } }
private UsuarioBLL RecuperarInformacion() { System.IO.MemoryStream ms = new System.IO.MemoryStream(); pictureBox1.Image.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg); UsuarioBLL usuarioBLL = new UsuarioBLL(); usuarioBLL.NombreUsuario = txtNombreUsuario.Text; usuarioBLL.Nombre = txtnombre.Text; usuarioBLL.Apellido = txtApellido.Text; usuarioBLL.Cargo = txtCargo.Text; usuarioBLL.Foto = ms.GetBuffer(); usuarioBLL.Password = txtPassword.Text; usuarioBLL.Permisos = int.Parse(cbxPermisos.SelectedValue.ToString()); usuarioBLL.ID = IDAux;//Aqui se usa la variable auxiliar para asignarla al ClietneBLL y poder pasar al metodo de editar un objeto completo return(usuarioBLL); }
private void ReturnCoverOriginalSize(MyHttpListenerContext ctx) { var res = ctx.Response; res.ContentType = "image/jpeg"; var image = Controller.Current.CoverArtImage(); if (image == null) { image = new Bitmap(1, 1); } using (var ms = new System.IO.MemoryStream()) { image.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg); var buffer = ms.GetBuffer(); res.OutputStream.Write(buffer, 0, buffer.Length); res.Close(); } }
//public void ExportProceseToExcel(ProcesView ProcesView) public void ExportProceseToExcel(Proces Proces, ProcesJson procesJson) { string conStr = Session["conStr"].ToString(); //ConfigurationManager.ConnectionStrings["MySQLConnectionString"].ConnectionString; int _CURENT_USER_ID = Convert.ToInt32(Session["CURENT_USER_ID"]); ProceseRepository pr = new ProceseRepository(_CURENT_USER_ID, conStr); string _f = CreateFilterString(JToken.FromObject(Proces), JToken.FromObject(procesJson)); response r = pr.ExportExcel(null, null, _f, null); DataTable proceseDt = (DataTable)r.Result; using (ExcelPackage pack = new ExcelPackage()) { ExcelWorksheet ws = pack.Workbook.Worksheets.Add("Procese"); ws.Cells["A1"].LoadFromDataTable(proceseDt, true); var ms = new System.IO.MemoryStream(); pack.SaveAs(ms); Response.BinaryWrite(ms.GetBuffer()); } }
private byte[] CreateThumbnails(byte[] picture) { Bitmap bitmap = BitmapFactory.DecodeByteArray(picture, 0, picture.Length); int maxHeight = 200; int maxWidth = 200; float scale = Math.Min(((float)maxHeight / bitmap.Width), ((float)maxWidth / bitmap.Height)); Matrix matrix = new Matrix(); matrix.PostScale(scale, scale); var thumbnail = Bitmap.CreateBitmap(bitmap, 0, 0, bitmap.Width, bitmap.Height, matrix, true); System.IO.MemoryStream stream = new System.IO.MemoryStream(); var compressionResult = thumbnail.Compress(Bitmap.CompressFormat.Jpeg, 80, stream); return(stream.GetBuffer()); }
/// <summary> /// Constructs a Camera ViewModel from the Camera Model /// </summary> /// <param name="camera">The model to be used</param> public Camera(Models.Camera camera) { ID = camera.ID; Name = camera.Name; CurrentImage = ""; if (camera.CurrentImage != null) { using (System.IO.MemoryStream stream = new System.IO.MemoryStream()) { // Scaling //camera.CurrentImage.Scale(EagleEyeConfig.WebImageWidth).Save(stream, System.Drawing.Imaging.ImageFormat.Png); // No scaling camera.CurrentImage.Save(stream, System.Drawing.Imaging.ImageFormat.Png); CurrentImage = System.Convert.ToBase64String(stream.GetBuffer()); } } }
public static byte[] GetBytesFromImage(Image img) { if (img == null) { return(null); } byte[] result; using (System.IO.MemoryStream stream = new System.IO.MemoryStream()) { Bitmap old = new Bitmap(img); //Bitmap new_bit = new Bitmap(old, Convert.ToInt32(5.52 * 38), Convert.ToInt32(4.86 * 38)); Bitmap new_bit = new Bitmap(old); old.Dispose(); new_bit.Save(stream, img.RawFormat); result = stream.GetBuffer(); } return(result); }
public void CreateImageOnPage(string code, HttpContext context) { System.IO.MemoryStream ms = new System.IO.MemoryStream(); Bitmap image = this.CreateImageCode(code); image.Save(ms, ImageFormat.Jpeg); context.Response.ClearContent(); context.Response.Expires = -1; //context.Response.Headers.Add("CacheControl", "no-cache"); //context.Response.Headers.Add("Pragma", "no-cache"); context.Response.ContentType = "image/Jpeg"; context.Response.BinaryWrite(ms.GetBuffer()); ms.Close(); ms = null; image.Dispose(); image = null; }
public override Beetle.Express.IData GetMessageData(object message) { Beetle.Express.IData data = null; using (System.IO.MemoryStream stream = new System.IO.MemoryStream()) { stream.Write(new byte[4], 0, 4); byte[] typedata = MessageCenter.GetMessageTypeData(message.GetType()); stream.Write(typedata, 0, typedata.Length); ProtoBuf.Meta.RuntimeTypeModel.Default.Serialize(stream, message); data = new Data(stream.GetBuffer(), (int)stream.Length); data.Tag = message; BitConverter.GetBytes((int)stream.Length - 4).CopyTo(data.Array, 0); } return(data); }
private void btnSave_Click(object sender, EventArgs e) { System.IO.MemoryStream ms = new System.IO.MemoryStream(); if (pictureBoxPreview.Image == null) { pictureDP.Image.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg); } else { pictureBoxPreview.Image.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg); } byte[] bStream = ms.GetBuffer(); if (GV.sEmployeeNo.Length > 0) { DataTable dtImage = GV.MSSQL1.BAL_FetchTable("RM..EmployeeImage", "EmployeeID = '" + GV.sEmployeeNo + "'"); string sSQLText = string.Empty; if (dtImage.Rows.Count > 0) { sSQLText = "UPDATE RM..EmployeeImage SET EmployeeImage = @Binary WHERE EmployeeID='" + GV.sEmployeeNo + "'"; } else { sSQLText = "INSERT INTO RM..EmployeeImage( EmployeeID,EmployeeImage ) VALUES( '" + GV.sEmployeeNo + "',@Binary )"; } if (DialogResult.Yes == MessageBoxEx.Show("Are you sure to update this Image ?", "Campaign Manager", MessageBoxButtons.YesNo, MessageBoxIcon.Question)) { SqlConnection connection = new SqlConnection(GV.sMSSQL1); SqlCommand command = new SqlCommand(sSQLText, connection); if (connection.State != ConnectionState.Open) { connection.Open(); } command.Parameters.AddWithValue("@Binary", bStream); command.ExecuteNonQuery(); connection.Close(); GV.imgEmployeeImage = Image.FromStream(new System.IO.MemoryStream(bStream)); ToastNotification.Show(this, "Image updated sucessfully.", eToastPosition.TopRight); this.Close(); } } }
/// <summary> /// 输出验证码 /// </summary> public void Val() { System.IO.MemoryStream ms = new System.IO.MemoryStream(); VerifyCode verify = new VerifyCode(); string code = verify.CreateVerifyCode(); SessionHelper.Add("ValCode", code, 3); Session.Add("ValCode", code); Bitmap image = verify.CreateImageCode(code); image.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg); Response.ClearContent(); Response.ContentType = "image/gif"; Response.BinaryWrite(ms.GetBuffer()); ms.Close(); ms = null; image.Dispose(); image = null; }
public string Encrypting(string Source, string Key) { byte[] bytIn = System.Text.ASCIIEncoding.ASCII.GetBytes(Source); // create a MemoryStream so that the process can be done without I/O files System.IO.MemoryStream ms = new System.IO.MemoryStream(); if (Key.Length > 8) { Key = Key.Substring(0, 8); } byte[] bytKey = GetLegalKey(Key.ToLower()); // set the private key mobjCryptoService.Key = bytKey; mobjCryptoService.IV = bytKey; // create an Encryptor from the Provider Service instance ICryptoTransform encrypto = mobjCryptoService.CreateEncryptor(); // create Crypto Stream that transforms a stream using the encryption CryptoStream cs = new CryptoStream(ms, encrypto, CryptoStreamMode.Write); // write out encrypted content into MemoryStream cs.Write(bytIn, 0, bytIn.Length); cs.FlushFinalBlock(); // get the output and trim the '\0' bytes byte[] bytOut = ms.GetBuffer(); int i = 0; for (i = 0; i < bytOut.Length; i++) { if (bytOut[i] == 0) { break; } } // convert into Base64 so that the result can be used in xml return(System.Convert.ToBase64String(bytOut, 0, i)); }
private void btnSave_Click(object sender, EventArgs e) { currentItem.local_item_task_id = Guid.NewGuid(); //获取宝贝图片内容及其他设置 Image image = picItem.Image; System.IO.MemoryStream ImageMem = new System.IO.MemoryStream(); image.Save(ImageMem, System.Drawing.Imaging.ImageFormat.Bmp); currentItem.img_data = ImageMem.GetBuffer(); currentItem.max_click = Convert.ToInt32(numMaxClick.Value); currentItem.run_days = Convert.ToInt32(numRunDays.Value); currentItem.creative_one_title = txtCreativeOne.Text.Trim(); currentItem.creative_two_title = txtCreativeTwo.Text.Trim(); currentItem.keyword = txtKeyword.Text.Trim(); if (cbkEffectTime.Checked) { currentItem.effect_start_time = dtStartTime.Value.ToString("HHmm"); currentItem.effect_end_time = dtEndTime.Value.ToString("HHmm"); } currentItem.remark = txtRemark.Text.Trim(); currentItem.create_time = currentItem.update_time = DateTime.Now; currentItem.is_enable = true; try { string result = FrmMain.ws.AddMyItem(ModelUtil.ConvertLocalToWs(currentItem)); if (result.Length == 0) { bllMyItem.AddMyItem(currentItem); frmItemMag.LoadData(); this.Close(); } else { MessageBox.Show(result); } } catch (Exception se) { MessageBox.Show("添加宝贝失败,请联系管理员!\r\n" + se.Message); return; } }
public void editarImagen(int id, String fecha, String codigo1, String descripcion1, String progresiva1, PictureBox pbImagen1, String codigo2, String descripcion2, String progresiva2, PictureBox pbImagen2) { obtConexion(); sql_con.Open(); sql_cmd = new SqlCommand("UPDATE img SET fechaImagen=@Fecha, " + "codigo1=@Codigo1,descripcion1=@Descripcion1,progresiva1=@Progresiva1,imagen1=@Imagen1, " + "codigo2=@Codigo2,descripcion2=@Descripcion2,progresiva2=@Progresiva2,imagen2=@Imagen2 " + "WHERE id_img = " + id, sql_con); sql_cmd.Parameters.Add("@Fecha", SqlDbType.NChar); sql_cmd.Parameters.Add("@Codigo1", SqlDbType.NChar); sql_cmd.Parameters.Add("@Descripcion1", SqlDbType.NChar); sql_cmd.Parameters.Add("@Progresiva1", SqlDbType.NChar); sql_cmd.Parameters.Add("@Imagen1", SqlDbType.Image); sql_cmd.Parameters.Add("@Codigo2", SqlDbType.NChar); sql_cmd.Parameters.Add("@Descripcion2", SqlDbType.NChar); sql_cmd.Parameters.Add("@Progresiva2", SqlDbType.NChar); sql_cmd.Parameters.Add("@Imagen2", SqlDbType.Image); sql_cmd.Parameters["@Fecha"].Value = fecha; sql_cmd.Parameters["@Codigo1"].Value = codigo1; sql_cmd.Parameters["@Descripcion1"].Value = descripcion1; sql_cmd.Parameters["@Progresiva1"].Value = progresiva1; System.IO.MemoryStream ms = new System.IO.MemoryStream(); pbImagen1.Image.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg); sql_cmd.Parameters["@Imagen1"].Value = ms.GetBuffer(); sql_cmd.Parameters["@Codigo2"].Value = codigo2; sql_cmd.Parameters["@Descripcion2"].Value = descripcion2; sql_cmd.Parameters["@Progresiva2"].Value = progresiva2; System.IO.MemoryStream mss = new System.IO.MemoryStream(); pbImagen2.Image.Save(mss, System.Drawing.Imaging.ImageFormat.Jpeg); sql_cmd.Parameters["@Imagen2"].Value = mss.GetBuffer(); sql_cmd.ExecuteNonQuery(); sql_con.Close(); }
private void button1_Click(object sender, EventArgs e) { Feedback_Table ft = new Feedback_Table(); ft.FeedbackCategoryID = comboBox1.SelectedIndex + 1; ft.MemberID = member_id; ft.Contents = textBox1.Text; ft.ProgressID = 1; ft.FeedbackDate = DateTime.Today; if (pictureBox1.Image != null) { byte[] bytes; System.IO.MemoryStream ms = new System.IO.MemoryStream(); pictureBox1.Image.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg); bytes = ms.GetBuffer(); ft.Picture = bytes; } DE.Feedback_Table.Add(ft); DE.SaveChanges(); listBox1.Items.Clear(); var q1 = new CCustomerMsg().get_Feedback_msg(member_id); foreach (var item in q1) { listBox1.Items.Add(item); } textBox1.Text = ""; pictureBox1.Image = null; var q2 = from n in DE.Feedback_Table where n.MemberID == member_id select new { n.Feedback_Category_Table.FeedbackCategory, n.Contents, n.FeedbackContent, n.Feedback_Progress_Table.ProgressContent, n.FeedbackDate, n.Picture }; dataGridView1.DataSource = q2.ToList(); }
public virtual TimeoutMonitor SendMsg(object msg) { try { System.IO.MemoryStream ms = new System.IO.MemoryStream(); System.Type type = msg.GetType(); type.GetMethod("Store").Invoke(msg, new object[] { ms }); System.Reflection.FieldInfo fi = type.GetField("MSG_ID"); int msgID = (int)fi.GetValue(msg); int dataLength = (int)(type.GetMethod("Size").Invoke(msg, null)); ushort packetLength = (ushort)(PACKET_HEADER_SIZE + dataLength); if (packetLength > Gamnet.Buffer.BUFFER_SIZE) { throw new System.Exception(string.Format("Overflow the send buffer max size : {0}", packetLength)); } byte[] buffer = new byte[packetLength]; byte[] length_buf = BitConverter.GetBytes(packetLength); buffer[0] = length_buf[0]; buffer[1] = length_buf[1]; byte[] msgid_buf = BitConverter.GetBytes(msgID); buffer[2] = msgid_buf[0]; buffer[3] = msgid_buf[1]; buffer[4] = msgid_buf[2]; buffer[5] = msgid_buf[3]; System.Array.Copy(ms.GetBuffer(), 0, buffer, PACKET_HEADER_SIZE, dataLength); AsyncSend(buffer); } catch (System.Exception error) { Error(error); Close(); } return(timeoutMonitor); }
/// <summary> /// 根据url生成二维码 /// </summary> /// <param name="url"></param> /// <returns></returns> public FileResult Index(string url = "") { //初始化二维码生成工具 QRCodeEncoder qrCodeEncoder = new QRCodeEncoder(); qrCodeEncoder.QRCodeEncodeMode = QRCodeEncoder.ENCODE_MODE.BYTE; qrCodeEncoder.QRCodeErrorCorrect = QRCodeEncoder.ERROR_CORRECTION.H; qrCodeEncoder.QRCodeVersion = 0; qrCodeEncoder.QRCodeScale = 4; //将字符串生成二维码图片 Bitmap image = qrCodeEncoder.Encode(url, Encoding.Default); //将图片保存到内存流 System.IO.MemoryStream ms = new System.IO.MemoryStream(); image.Save(ms, System.Drawing.Imaging.ImageFormat.Png); //输出二维码图片 return(File(ms.GetBuffer(), "image/PNG")); }
public IActionResult MostrarImagen(string imagen) { System.IO.MemoryStream returnStream = new System.IO.MemoryStream(); try { string Ubicacion = "./Posters/img-no-disponible.jpg"; if (System.IO.File.Exists("./Posters" + imagen)) { Ubicacion = "./" + imagen; } using (System.IO.FileStream fileStream = System.IO.File.OpenRead(Ubicacion)) { returnStream.SetLength(fileStream.Length); fileStream.Read(returnStream.GetBuffer(), 0, (int)fileStream.Length); } } catch (Exception Ex) { } return(new FileStreamResult(returnStream, "image/Jpeg")); }
private UIImage LoadUIImage(string localPath) { var file = Mvx.Resolve <IMvxFileStore>(); byte[] data = null; if (!file.TryReadBinaryFile(localPath, stream => { var memoryStream = new System.IO.MemoryStream(); stream.CopyTo(memoryStream); data = memoryStream.GetBuffer(); return(true); })) { return(null); } var imageData = NSData.FromArray(data); return(UIImage.LoadFromData(imageData)); }
/****************************Testing reduce size to pics***************************************** */ public byte[] ResizeImageFile(byte[] imageFile, int targetSize) // Set targetSize to 1024 { using (System.Drawing.Image oldImage = System.Drawing.Image.FromStream(new System.IO.MemoryStream(imageFile))) { Size newSize = CalculateDimensions(oldImage.Size, targetSize); using (Bitmap newImage = new Bitmap(newSize.Width, newSize.Height, PixelFormat.Format24bppRgb)) { using (Graphics canvas = Graphics.FromImage(newImage)) { canvas.SmoothingMode = SmoothingMode.AntiAlias; canvas.InterpolationMode = InterpolationMode.HighQualityBicubic; canvas.PixelOffsetMode = PixelOffsetMode.HighQuality; canvas.DrawImage(oldImage, new Rectangle(new Point(0, 0), newSize)); System.IO.MemoryStream m = new System.IO.MemoryStream(); newImage.Save(m, ImageFormat.Jpeg); return(m.GetBuffer()); } } } }
public void TestGetResponseAsync1() { WebRequest request = WebRequest.CreateHttp("http://httpbin.org/get"); request.Method = "GET"; MemoryStream outputStream = new MemoryStream(); Task testTask = WebRequestExtensions.GetResponseAsync(request) .Then(task => StreamExtensions.CopyToAsync(task.Result.GetResponseStream(), outputStream)); testTask.Wait(); Assert.AreEqual(TaskStatus.RanToCompletion, testTask.Status); Console.Error.WriteLine(Encoding.UTF8.GetString(outputStream.GetBuffer())); GetData getData = JsonConvert.DeserializeObject <GetData>(Encoding.UTF8.GetString(outputStream.GetBuffer())); Assert.AreEqual(request.RequestUri.OriginalString, getData.url); }
// capturamos los datos de la capa entidad para correr la sentencia sql procedure public void Insertar(CapaEntidad.CEEmpresas cEEmpresas) { System.IO.MemoryStream ms = new System.IO.MemoryStream(); cEEmpresas.Logo.Image.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg); command.Connection = conexion.AbrirConexion(); command.CommandText = "InsertarEmpresa"; command.CommandType = CommandType.StoredProcedure; command.Parameters.AddWithValue("@razonSocial", cEEmpresas.RazonSocial); command.Parameters.AddWithValue("@nombreFantasia", cEEmpresas.NombreFantasia); command.Parameters.AddWithValue("@ruc", cEEmpresas.Ruc); command.Parameters.AddWithValue("@direccion", cEEmpresas.Dirrecion); command.Parameters.AddWithValue("@telefono", cEEmpresas.Telefono); command.Parameters.AddWithValue("@email", cEEmpresas.Email); command.Parameters.AddWithValue("@logo", ms.GetBuffer()); command.ExecuteNonQuery(); conexion.CerrarConexion(); command.Parameters.Clear(); }