# \#bigarray

**URL:** https://discuss.ocaml.org/tag/bigarray/384.md

[Latest](https://discuss.ocaml.org/latest.md) · [Categories](https://discuss.ocaml.org/categories.md) · [Tags](https://discuss.ocaml.org/tags.md)

---

## [Iteration over BigArray.Genarray](https://discuss.ocaml.org/t/iteration-over-bigarray-genarray/14026)

<div class="topic-metadata">

**Author:** [@NAlec](https://discuss.ocaml.org/u/NAlec)\
**Replies:** 4\
**Last updated:** [February 8, 2024, 8:59am UTC](https://discuss.ocaml.org/t/iteration-over-bigarray-genarray/14026 "2024-02-08T08:59:42Z")

</div>

Hello, Is there a facility to iterate over BigArray.Genarray of any dimension (I don’t see any in the doc) or shall I build it myself ?

---

## [Cast Bigarray kind](https://discuss.ocaml.org/t/cast-bigarray-kind/8469)

<div class="topic-metadata">

**Author:** [@crackcomm](https://discuss.ocaml.org/u/crackcomm)\
**Replies:** 11\
**Last updated:** [February 20, 2023, 11:18am UTC](https://discuss.ocaml.org/t/cast-bigarray-kind/8469 "2023-02-20T11:18:34Z")

</div>

Hey there, I am trying to cast a float Array2.t into a bigstring (char Array1.t). I started with reshaping and Obj.magic, I tried writing a C extension, nothing with success. Is there any way I can do this? It’s pretty…

---

## [Bigarray to image (data uri compatible)](https://discuss.ocaml.org/t/bigarray-to-image-data-uri-compatible/6130)

<div class="topic-metadata">

**Author:** [@maiste](https://discuss.ocaml.org/u/maiste)\
**Replies:** 8\
**Last updated:** [September 29, 2020, 12:34pm UTC](https://discuss.ocaml.org/t/bigarray-to-image-data-uri-compatible/6130 "2020-09-29T12:34:17Z")

</div>

Hi, I’m working on a project where I have to produce an image from a bigarray of pixels. Then, this image is used in a src html field as data. See the following example: \<img src="data:image/\<type\>;base64,\<data\_conten…

---

## [Bigarray in ocplib-json](https://discuss.ocaml.org/t/bigarray-in-ocplib-json/6139)

<div class="topic-metadata">

**Author:** [@maiste](https://discuss.ocaml.org/u/maiste)\
**Replies:** 0\
**Last updated:** [July 25, 2020, 2:30pm UTC](https://discuss.ocaml.org/t/bigarray-in-ocplib-json/6139 "2020-07-25T14:30:38Z")

</div>

Hi, is there a way to send bigarrays through JSON with the ocplib-json lib ? I’m trying to create an object with a bigarray, a width and a height but I can’t use the array constructor for array. I don’t find something …
